HTML Decoding

U

Uriah Piddle

Hi Gang,

I have text that I am putting into a label that has been custom formatted by
a text editor and looks like this:

Some outside text <crl>Some inside text</clr> Some outside text

How can I map this to an item in a CSS file so that I can use it to format
the 'Some inside text' portion of the text?

Thanks.

Steve
 
J

John Timney \(MVP\)

Well I dont think you can map it to CSS without changing it to something CSS
can identify against. So, before you add the text to the label do a string
replace on the crl so it becomes a DIV and manipulate the DIV as you would
any div from CSS. Of course you'll need to close the DIV correctly also.

So:
Some outside text <crl>Some inside text</clr> Some outside text
becomes
Some outside text <div class="crl">Some inside text</div> Some outside text

--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
http://www.johntimney.com/blog
 
U

Uriah Piddle

Thanks John.

John Timney (MVP) said:
Well I dont think you can map it to CSS without changing it to something
CSS can identify against. So, before you add the text to the label do a
string replace on the crl so it becomes a DIV and manipulate the DIV as
you would any div from CSS. Of course you'll need to close the DIV
correctly also.

So:
Some outside text <crl>Some inside text</clr> Some outside text
becomes
Some outside text <div class="crl">Some inside text</div> Some outside
text

--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
http://www.johntimney.com/blog
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top