I've got a variable which has html inside. This is for my wysiwyg editor.
data () {
return {
HTMLtext: "<p style="text-align: center;"><b>Hospital</b></p><p>
</p><p style="text-align: center;"> <b>Physician</b></p>
<p></p><p style="text-align: center;"> City <b>New York</b>",
Place: "London"
}
}
Now, I want to change this HTMLtext variable in some places. For example I've got variable called place:
Place: "London"
and I want to replace <b>New York</b> with Place variable into <b>London</b>
What should I do? What is the best approach? Is it generally safe? Is this a good practice?
<b>New York</b>. Can you give us some more description of how this step fits into what you're trying to do?...<p style="text-align: center;"> City <b>${this.Place}</b>${this.Place}