I'm using vue 2. I have a text get from api.
"Hello everyone! My name is [input]. I'm [input] year old".
Now, I have to replace the [input] with an html input and handle the onKeyUp for this input.
What I have to do?
I used computed render html, but it not work with v-on:xxx.
content.replaceAll('[answer]', '<input type="text" class="input_answer" v-on:click="handleInput()"/>')
Thanks!

inputtag then that value should replace the[input]in this string "Hello everyone! My name is [input]. I'm [input] year old" on keyUp event?content.replaceAll('[answer]', '<input type="text" class="input_answer" v-on:click="handleInput()"/>')why have you used this?Dan got 90 points for the Maths test, 70 points for the Science test, 80 points for the English test. The average point of the four tests Dan got was [answer] points. Jenny's family consumes 50 kg of rice in January, 55 kg in February and 45 kg on March. On average, Jenny's family consumes [answer] kg of rice a month.2. Now, i have render in frontend. [link]drive.google.com/file/d/1AduuyKhGQ4oSga8PGMSZDbCPFH3uvGfr/…> -When user click Question 1 so forcus input 1.<br/> -When user click submit, will post all answers with api.