![]() |
|
|
|||||||
![]() |
HTML - What are these characters? "><" |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
They have shown up in script-generated html code and they are screwing
up my html display. Anyone have any clue as to where I could begin looking? The script just generates html like this: echo "<TR><TD>$PROC_1 - $PROC_1_CURRENT instances running</TD><TD>" >> $BBTMP/$TEST and somehow these "><" characters are being inserted, or misunderstood from somewhere... any advice? Thanks, the colonel colonel |
|
|
|
|
#2 |
|
Posts: n/a
|
Previously in alt.html, colonel <> said:
> They have shown up in script-generated html code and they are screwing > up my html display. Anyone have any clue as to where I could begin > looking? The script just generates html like this: > is the named character entity reference for the "greater than" symbol (>). Likewise < is the "less than" symbol (<). http://www.w3.org/TR/REC-html40/sgml/entities.html -- Mark Parnell http://www.clarkecomputers.com.au |
|
|
|
#3 |
|
Posts: n/a
|
On Thu, 10 Feb 2005 09:13:10 +1100, Mark Parnell <> wrote: >Previously in alt.html, colonel <> said: > >> They have shown up in script-generated html code and they are screwing >> up my html display. Anyone have any clue as to where I could begin >> looking? The script just generates html like this: > >> is the named character entity reference for the "greater than" >symbol (>). >Likewise < is the "less than" symbol (<). > >http://www.w3.org/TR/REC-html40/sgml/entities.html Thanks. That makes sense. Now I just need to figure out why the < and > are being translated... Thanks for your help. |
|
|
|
#4 |
|
Posts: n/a
|
colonel wrote:
> They have shown up in script-generated html code and they are screwing > up my html display. Anyone have any clue as to where I could begin > looking? The script just generates html like this: > > echo "<TR><TD>$PROC_1 - $PROC_1_CURRENT instances running</TD><TD>" >> > $BBTMP/$TEST > > and somehow these "><" characters are being inserted, or > misunderstood from somewhere... > > any advice? > > Thanks, > > the colonel > > > > Well the '>' is the HTML entity for 'greater than' character '>'. The '<' would be the 'less than' entity '<' if it had the required trailing ';' semicolon. -- Take care, Jonathan ------------------- LITTLE WORKS STUDIO http://www.LittleWorksStudio.com |
|
|
|
#5 |
|
Posts: n/a
|
colonel wrote:
> Thanks. That makes sense. Now I just need to figure out why the < > and > are being translated... > Well, whatever program you're using is doing it automatically for you. It's necessary because otherwise the browser's HTML parser would see a "<", for instance, and think that that's the start of an HTML tag and possibly screw up. Writing it as < makes it explicit that you want to display a "<" symbol to the user. Same logic applies to >, &, ", and others. -- Oli |
|
|
|
#6 |
|
Posts: n/a
|
Jonathan N. Little <> wrote:
> The '<' would be the 'less than' entity '<' if it had the > required trailing ';' semicolon. In SGML, a Reference Close (";") is not required to end an entity reference. Any non name character will also terminate the parsing, as will the record end character. In XML though, entity references must end with ";". -- David Håsäther |
|