methods: {
pop_up_handbook () {
this.$Modal.info({
title: 'Search Engine Syntax',
content: 'Hi\nThis is an example\n :)'
})
}
}
}
The problem is, in the string in "content", if I use <br />, it will not be unescaped...
If I use \n, it will be interpreted as "space" instead of "newline".
I have tried to search for solutions online, but as far as I could find, were to use v-html instead... However I couldn't figure out a way to use v-html here...
For example,
The problem is, in the string in "content", if I use
<br />
, it will not be unescaped... If I use\n
, it will be interpreted as "space" instead of "newline".I have tried to search for solutions online, but as far as I could find, were to use
v-html
instead... However I couldn't figure out a way to usev-html
here...Thank you.