volterra79 Posted May 19, 2012 Share Posted May 19, 2012 Hi all,i have a question: I create a variabel as: html = "<input type='text' name='FirstName' value="+code+" />" where code is a html code as: code = <p>My first paragraph.</p> How can write html code as text inside a html code? Thank Francesco 1 Link to comment Share on other sites More sharing options...
Ingolme Posted May 19, 2012 Share Posted May 19, 2012 You can use HTML entities: value="<p>My first paragraph.</p>" Here's a list of the main entities you'll need to escape:< = <> = >" = "' = '& = & Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now