H
hendedav
Gang,
I have been searching for this on the web as best I can and have
found no answers. I am interested in using a document.write (or other
type of javascript code) to write a segment that contains wording and
xhtml code without escaping the code. For example:
document.write("this is an example of a link: <a href=\"test.html
\">link</a>");
would like to find a way to not have to escape the anchor tag,
maybe something like:
document.write[
this is an example of a link: <a href="test.html">link</a>
]
I know the square brackets will not work, just I am interested in
knowing if there is some way to delimit a start and end "tag" for the
write function so I don't have to escape any xhtml code. Thanks in
advance.
Dave
I have been searching for this on the web as best I can and have
found no answers. I am interested in using a document.write (or other
type of javascript code) to write a segment that contains wording and
xhtml code without escaping the code. For example:
document.write("this is an example of a link: <a href=\"test.html
\">link</a>");
would like to find a way to not have to escape the anchor tag,
maybe something like:
document.write[
this is an example of a link: <a href="test.html">link</a>
]
I know the square brackets will not work, just I am interested in
knowing if there is some way to delimit a start and end "tag" for the
write function so I don't have to escape any xhtml code. Thanks in
advance.
Dave