remove the raw HTML
This commit is contained in:
parent
c23b8a642d
commit
4995c32dbc
|
@ -4,7 +4,7 @@ const app = Vue.createApp({
|
|||
data() {
|
||||
return {
|
||||
courseGoalA: "Finish the course and learn Vue!",
|
||||
courseGoalB: "<h2>Master Vue and build amazing apps!</h2>",
|
||||
courseGoalB: "Master Vue and build amazing apps!",
|
||||
vueLink: "https://vuejs.org",
|
||||
};
|
||||
},
|
||||
|
|
|
@ -17,7 +17,8 @@
|
|||
</header>
|
||||
<section id="user-goal">
|
||||
<h2>My Course Goal</h2>
|
||||
<p v-html="outputGoal()"></p>
|
||||
<!-- <p v-html="outputGoal()"></p> -->
|
||||
<p>{{ outputGoal() }}</p>
|
||||
<p>Learn more <a v-bind:href="vueLink">about Vue</a>.</p>
|
||||
</section>
|
||||
</body>
|
||||
|
|
Reference in New Issue