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!
<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!
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?The best way to paste already formatted text into a wiki page is to first paste it into a plain text editor, like TextEdit for the Mac, or Notepad for the PC.
Once you have the text pasted into the text editor, copy it again and then paste it into your wiki page. This removes all of the strange formatting and allows you to reformat it using the PBwiki editor.
Thanks for reporting this.
-
Inappropriate?Thanks, Clif. I also found PlainClip, an application which removes formatting from the Mac's clipboard contents:
http://www.bluem.net/downloads/plain-...
I'm still trying to figure out how to deal with cmd-B and cmd-I, though. I'm very used to using those shortcuts but they do leave a bit of a mess behind in Safari.
Loading Profile...



