Forum Moderators: open

Message Too Old, No Replies

HTML Entity Codes

Code for #?

         

RammsteinNicCage

8:01 pm on Mar 5, 2006 (gmt 0)

10+ Year Member



Is there an HTML entity code for the # symbol?

Jennifer

encyclo

8:15 pm on Mar 5, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can use:
[b]#[/b]
which is the entity reference for # - see this ASCII reference chart [w3schools.com] for a full list.

However, as # is ASCII, why do you need to use the entity reference?

RammsteinNicCage

8:38 pm on Mar 5, 2006 (gmt 0)

10+ Year Member



For a stupid reason. :p I finally got suckered into joining myspace and a title for a blog entry includes # but they convert that to a period. Unfortunately, # doesn't fix the problem, it's just displayed as #.

Jennifer

Agzl

8:42 pm on Mar 5, 2006 (gmt 0)

10+ Year Member



1)Myspace is crap
2)find a host

You shouldnt realy use these forums for myspace becuase you do not create your ownpages you use some page builder and you dont own myspace.

encyclo

8:43 pm on Mar 5, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried something like:

http://example.com/link[b]%23[/b]page-ref

Where "%23" is the escaped character for a # in a URI? That might work. :)

Note: you get the escaped value by converting the ASCII code to its Hex value, so # = 35 (ASCII) = %23 (HEX)

RammsteinNicCage

9:01 pm on Mar 5, 2006 (gmt 0)

10+ Year Member



Agzl, your comments were completely worthless for me, so thanks. :)

encyclo, that didn't work either. I guess maybe it's just a security feature that they implemented to make sure # can't be used, does that make sense?

Jennifer