PDA

View Full Version : Noparsing with HTML



The Vorpal Tribble
2008-10-29, 09:00 AM
Heyas, any of you coders know of the HTML equivalent of the 'noparse' function such as you can show code without it triggering anything?

Example:
BOLD!

I want to be able to send this code...
<a href="<img src="http://www.musicsrisingstarsmag.com">"><img src="http://i235.photobucket.com/albums/ee304/Debbiedoo319/RSNewBanner.jpg"></a>

...to others so they can post it on their MySpaces or websites or whatnot, but don't know how to merely show the code.

InaVegt
2008-10-29, 09:12 AM
Replace '<' with '&lt;' > with '&gt;', and '"' with '&quot;'

The Vorpal Tribble
2008-10-29, 09:24 AM
Replace '<' with '&lt;' > with '&gt;', and '"' with '&quot;'
That doesn't seem to do anything. Message them with that and it still sends them the picture and not the code.

InaVegt
2008-10-29, 10:27 AM
That seems to be a bug in the system you use, as these characters where designed to solve that problem.

Lorn
2008-10-29, 10:34 AM
Put it in a textarea?

<textarea rows="1" cols="150><a href="<img src="http://www.musicsrisingstarsmag.com">"><img src="http://i235.photobucket.com/albums/ee304/Debbiedoo319/RSNewBanner.jpg"></a></textarea>

valadil
2008-10-29, 11:11 AM
The code tag might work. You could always put spaces between your < and your tag and tell the recipient to remove the space.

The Vorpal Tribble
2008-10-29, 11:18 AM
Hmmm, none of those seem to work either. And I don't think it's anything with my comp, just MySpace in general, as others involved say it does the same with them.


The code tag might work. You could always put spaces between your < and your tag and tell the recipient to remove the space.
Tried that, but some of these folks are, to put it bluntly, bloody stupid :smallsigh:

Don't have a clue how they even maintain their pages.

valadil
2008-10-29, 11:37 AM
What are you using to send them the text? If it's email you might be able to force it to be text instead of html through your client settings. Or you could attach a .txt file and put the html in there.

The Vorpal Tribble
2008-10-29, 12:11 PM
What are you using to send them the text? If it's email you might be able to force it to be text instead of html through your client settings. Or you could attach a .txt file and put the html in there.
In this instance just trying to use myspace mail. Usually general HTML works, but pictures it seems to have a problem with.

valadil
2008-10-29, 01:49 PM
It might be MySpace doing something weird to your code to prevent people from sending images. It might also be the code you're using.

<a href="<img src="http://www.musicsrisingstarsmag.com">">

Is new to me. Usually I see something more like:

<a href="http://www.musicsrisingstarsmag.com">

I'm not sure what putting one tag in another would do. I imagine some browsers would treat the link as a new document with img as its root. Others might not handle it so gracefully. If MySpace is parsing your HTML for whatever reason it might be confused by < followed by < before >.