Storing HTML Within Attribute
I'm storing HTML code within an element attribute like so.
)
.replace(/"/g, '"')
.replace(/'/g, ''')
.replace(/</g, '<')
.replace(/>/g, '>');
}
this should give you a string that can be used as a valid html attribute value
Post a Comment for "Storing HTML Within Attribute"