WordPress.org

Ready to get started?Download WordPress

Forums

Paste text from Word adds b and i tags instead strong and em (6 posts)

  1. cperez500
    Member
    Posted 1 year ago #

    Hi all.

    As i said in the subject, when i paste a text with the "Paste from Word" tool within the visual text editor of WordPress, the html tags that it uses for italic and bold text are <i> and <b> instead <em> and <strong>, but this has only happened since i upgraded WordPress to the 3.5 version.

    Any ideas about why and how to solve it?

    Thanks in advance and sorry for my bad english.
    Cheers

  2. riversatile
    Member
    Posted 1 year ago #

    Yes, it does the same thing on my WordPress 3.5.
    I think it's only since WP 3.5 update.

    But why do you tell it's an issue ?
    <b>...</b>
    is shorter than
    <strong>...</strong>
    and
    <i>...</i>
    is shorter than
    <em>...</em>

    FYI: Your English is good.

  3. cperez500
    Member
    Posted 1 year ago #

    Hi and thanks for your reply kind sir.

    I think that maybe i have become a purist of html code XD, but this is the note in the w3 site about the <b> tag:

    According to the HTML 5 specification, the <b> tag should be used as a LAST resort when no other tag is more appropriate ... emphasized text should be denoted with the <em> tag, important text should be denoted with the <strong>...

    And this other explanation in the <i> tag:

    Use the <i> element only when there is not a more appropriate semantic element

    Cheers.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    Don't paste content from Microsoft Word into WordPress as the pasted text will also contain Word's own formatting. Sooner or later, this formatting will stop your pages from being displayed correctly (if at all) in Internet Explorer. If you cannot possibly manage without Word, paste your text into NotePad (or another text editor) first, then copy from NotePad into WordPress.

    Or use Windows LiveWriter.

  5. cperez500
    Member
    Posted 1 year ago #

    Hi esmi.

    As a matter of fact the WordPress text editor does a very good job deleting all that crappy format from Word (i always check the html code before posting), while keeping the bold and italic text at the same time, that is the only thing i want to keep. I've been doing this (pasting text from Word) many years now and i'm just concerned of this little change of tags, that i don't know if it is even related to Word.

    I know that Word is 'problematic' at least, and i have tried a couple of times to get rid of it, but right now i've become too lazy ;)

    Thanks for your reply.
    Cheers

  6. groomedmonkey
    Member
    Posted 7 months ago #

    Also esmi, that is fine advice for technical people but when dealing with clients... they have content in Word files and will likely need to copy/paste from there.

    The i/b tags are very annoying from the paste using the [w] paste button.

Topic Closed

This topic has been closed to new replies.

About this Topic