Get your own customer support community
 

Eliminating junky HTML when editing with Safari

When I paste text from somewhere else into my wiki using Safari, I get a lot of unwanted formatting stuff in the content like this:

<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">Hello, this is some text from TextEdit.</p>

Pasting that same line with Firefox gives nice HTML that's a lot easier to edit later:

<p>Hello, this is some text from TextEdit.</p>

Similarly, if I use command-B to set bold using Safari, I get this in the page's HTML:

<span class="Apple-style-span" style="font-weight: bold;">Bold</span>

whereas with Firefox, cmd-B gives this:

<strong>Bold</strong>

Does anybody know how to disable this Safari behavior? I'm sure it's trying to maintain accurate formatting, but all the extra stuff often makes the PBwiki editor behave strangely. Thanks!
 
silly I’m confused
Inappropriate?
1 person has this question

User_default_medium