I'm outputting a page of html as a value for in an <input tag
I need to serve up the page as htmlentities in order to fit it into the value part of my <input>.
Unfortunately though, serving up the <img src="" part doesn't work as <img src=""
Is there any way around this from a html perspective ?
Code:
<div><input type="hidden" id="editor1" name="editor1" value=
"<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> ... "
I need to serve up the page as htmlentities in order to fit it into the value part of my <input>.
Unfortunately though, serving up the <img src="" part doesn't work as <img src=""
Is there any way around this from a html perspective ?