I will try and explain this as good as i can, the website im working on, the documents (or rather, written articles) recieves its raw text from an XML file recieved from a web service.
In that text, is HTML tags for formatting, but as it is now, the tags are just displayed as ordinary text and not read as actual HTML. The text IS shown though, but of course it lacks formatting.
Im forced to recieve the text this way, as the old companies website worked this way, and it cant be changed. (I suggested removing the html from the text from the server itself, and that was met with a big no so...)
Anyway, i tried using the StripHTML, which removes all the HTML tags, and that worked fine, but that makes the formatting even worse.
So now i want to know if there is a smiliar function, that makes it render the HTML instead of removing or ignoring it.
Render HTML from text
I will try and explain this as good as i can, the website im working on, the documents (or rather, written articles) recieves its raw text from an XML file recieved from a web service.
In that text, is HTML tags for formatting, but as it is now, the tags are just displayed as ordinary text and not read as actual HTML. The text IS shown though, but of course it lacks formatting.
Im forced to recieve the text this way, as the old companies website worked this way, and it cant be changed. (I suggested removing the html from the text from the server itself, and that was met with a big no so...)
Anyway, i tried using the StripHTML, which removes all the HTML tags, and that worked fine, but that makes the formatting even worse.
So now i want to know if there is a smiliar function, that makes it render the HTML instead of removing or ignoring it.
Hi Frederik,
Do you have an example of the text (with HTML in it)?
Thinking that you might just need to escape the output encoding, like so...
Cheers, Lee.
Oh how stupid of me, i glanced over that function but shrugged it off. But thank you very much, it works like a charm :)
Hi Frederik, no worries - glad that you've got it sorted.
Cheers, Lee.
excelent!!!! thats what i looking for
is working on a reply...