javascript - Jquery HTML Method -



javascript - Jquery HTML Method -

i'm using jquery work on project , having problem html() method. there way method can ignore tags in text? illustration if string is

"a paragraph can started <code><p><code> tag"

how can create code tag interpreted p tag it's brackets not? if solution requires beside jquery, still allow me know.

thanks in advance!

try this:

use symbol &lt; , &lt;/ &gt; closing tag this. illustration : "a paragraph can started <p> tutorial </p> tag"

&lt; < , &gr; >. combining both of them create bracket tag not interpreted browser html tag.

bonus: demo. easy use.

javascript jquery html string

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -