Lefora Free Forum
login join
Loading
751 views

convert html entities to viewable string

Page 1
1–5
regular - member
54 posts

How do I convert a string with HTML entities to a viewable string? Like below:

"(To the music of Strange Days of Uncle Jack)

Southern California, are you ready?
From the gutters of Hollywood, California
Will you welcome
The glam
slam
kings of noise....
POISON!!!!"

Thanks,
Todd

regular - member
54 posts
?
288 posts

Todd

Yes, I read that article on StackOverflow a few weeks back.  That'll work (to a point) - I don't appear to know about all the 'special' characters in HTML (I think there are about 200 of them, and of course the &#hex; characters.  And for sure there's something in the depths of WebKit which will know about all the horrors that could arise.

However it's very likely that the function in StackOverflow will be sufficient for you needs.  If later on you find you need more powerful magic, a little bit of digging in WebKit will probably be needed.

__________________
regular - member
54 posts

That's what I thought bu I did not find anything. Horrors is a very good description. So far the code from the link is working, so I am going to keep plugging along. On a side note...I still have not delved any further into the memory manegement, I got side tracked into another seemingly simple project. It is never as simple as it seems is it? Thought a couple of hours would do it. I got a ned dvd burner and wanted to back up my itune library before the inevitable, so I thought I would get my track tags all filled in and art and lyrics.....blah blah blah. I keep finding MORE projects to work on, each one seems to be more important than the last. Good news is, each project is getting easier and easier to make..this last one has only taken 3-4 days to get operational, but NEVER done. Will touch bases about memory in the other thread soon.


Todd

?
288 posts

Todd

It gets easier as you learn more about the system.  As you learn more, you become more ambitious.  The aim is to keep your ambition curve inside the envelop of your knowledge!

You're getting there.  You're doing good.

Robin

__________________
Page 1
1–5

Locked Topic


You must be a member to post in this forum

Join Now!