javascript - How to decode string when using data-bind -


i have meet problem.

in view use span bind string.

<span data-bind="text: mystring"></span> 

in model: mystring = '<b>i want show in bold!</b>';

it show origin string in view.so how make view know html tag?

use html binding per docs

<span data-bind="html: mystring"></span> 

Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -