I have a page that grabs data from the DB. Data looks like:
[some text] <html> <head> <title> </title> <script type="text/javascript"> [some functions] </script> </head> <body onLoad="window.location = bredir([some url]) </body> </html>
So when i display my page it looks like the javascript is being executed, and the url that im hitting is being extended with the url stated in the "bredir" function - so all i get is a 404 error.
I'd like to just display the code without executing it. I tried enclosing the data in <code> and <pre> tags but that still executes the javascript. If i enclose the code in <noscript> my data doesn't show at all (it can only be seen through View Source).
I know i can change all < and > to & l t; and & g t; respectively, but was wondering if there is another easier way.
Thank you in advance!
[some text] <html> <head> <title> </title> <script type="text/javascript"> [some functions] </script> </head> <body onLoad="window.location = bredir([some url]) </body> </html>
So when i display my page it looks like the javascript is being executed, and the url that im hitting is being extended with the url stated in the "bredir" function - so all i get is a 404 error.
I'd like to just display the code without executing it. I tried enclosing the data in <code> and <pre> tags but that still executes the javascript. If i enclose the code in <noscript> my data doesn't show at all (it can only be seen through View Source).
I know i can change all < and > to & l t; and & g t; respectively, but was wondering if there is another easier way.
Thank you in advance!