This is a migrated thread and some comments may be shown as answers.

[Solved] How to change tags used for Bold, Italic and Underlined text.

0 Answers 15 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sijmen
Top achievements
Rank 1
Sijmen asked on 03 May 2012, 05:36 AM
Hi,

Currently, when using the ASP.NET MVC Editor to enter text with Bold, Italic and Underlined styles, the generated html looks like this:

<p>This is <strong>Bold</strong>, <em>Italic</em> and
<
span style="text-decoration:underline;">Underlined
</span> text.</p>
What I need if for the text to look like this:

<p>This is <b>Bold</b>, <i>Italic</i> and <u>Underlined</u> text.</p>
How can I change the Editor so that when the user formats the text using Bold, Italic and Underline, it uses the <b></b>, <i></i> and <u></u> tag pairs respectively?
 
Regards,
Sijmen.

Tags
Editor
Asked by
Sijmen
Top achievements
Rank 1
Share this question
or