I want to be able to insert some PHP script into an HTML page - - as code text (I don't want it executing). This is the code: <code><script src="http://feeds.feedburner.com/museum-tracker/nZZW?format=sigpro" type="text/javascript" ></script ></code> I'ce tried the code, tt and pre tags, all to no avail. Thanks, David Berghouse
I've already tried the pre tag and it does not work. The script executes, rather than displays. However, I have subsequently discovered that by using characters entities and replacing the < with & # 60 ; and the > with & # 62 ; I could make the script display without executing. Note: remove the spaces within the character entities above, otherwise this post will display the bracket character, rather that its character entity. David Berghouse.
You have to use special characters if you want to display <, >, etc. Google "html numbers" for the HTML numbers on special characters. Try this: <script src="http://feeds.feedburner.com/museum-tracker/nZZW?format=sigpro" type="text/javascript" ></script> Code (markup):