javascript - jQuery don't parse HTML -



javascript - jQuery don't parse HTML -

i have string html elements, , i'm using jquery seek append string div:

var content = '<div>test</div>'; $('div').append(content);

is there way in javascript or jquery create doesn't parse string in div get:

<div>test</div>

instead of

test

you can utilize jquery .text() function set strings html elements. if utilize .html() function set test

javascript jquery

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -