Hi,

try encoding the content (which contains the html). this way < will become
%lt;, > will become %gt; causing the text to appear like you want.
Try something like the following:

$(".selector").replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;')

Hope it helps.

Thank you,

Kartik Sehgal

On Fri, Aug 21, 2009 at 5:34 PM, tdnnash25 <[email protected]> wrote:

>
> Assuming you type "test" in the body of a page and you italicize it.
> Can you use javascript to show you the markup used?
>
> So, I am using CKEditor (rich text editor). I type the word Test on
> the page.  Then I click the Italics button while Test is highlighted.
> Then on tab 2 of my application I click in the textarea and it
> displays the word Test in italics.  I want it to display the HTML code
> though ... <i>Test</i>
>
> Any way to do this?
> >
>


-- 
URL: http://sites.google.com/site/spyderhoodcommunity

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to