Results 1 to 13 of 13

Acronyms Break HTML

This is a discussion on Acronyms Break HTML within the Bug Reporting forums, part of the vBSEO SEO Plugin category; When a defined acronym is found inside another HTML tag, for example in title or alt attributes, it breaks the ...

  1. #1
    Member
    Real Name
    Ted
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    54
    Liked
    0 times

    Acronyms Break HTML

    When a defined acronym is found inside another HTML tag, for example in title or alt attributes, it breaks the HTML. Just had this happen in one of my CMS articles.

    You don't even need HTML enabled to duplicate this (it happened to me with a custom linking BB-Code). Pretty sure setting an acronym for any HTML tag name - like "img" will break the HTML output of the IMG tag.

    Basically, acronyms need to ignore anything after a < and before a >
    - the makers of VaultWiki

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Please set the setting to "apply to content areas only" to yes and "urls" to no

    vbseo-control-panel-vbseo-v.3.5.0-rc2_1272517196035.png

    See if that clears it up.

  3. #3
    Member
    Real Name
    Ted
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    54
    Liked
    0 times
    That has no effect.
    - the makers of VaultWiki

  4. #4
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    You can also try setting your acronyms with spaces.

    ie,
    Code:
    ' img ' => ' something '

  5. #5
    Member
    Real Name
    Ted
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    54
    Liked
    0 times
    But then I would have the same problem with the following HTML:
    HTML Code:
    <a href="#" title="text with an img in it">
    It would become:
    HTML Code:
    <a href="#" title="text with an<abbr title=" something "> img </abbr>in it">
    Sorry but I think you'll need to modify the RegEx for acronyms to ignore any text between < >.
    - the makers of VaultWiki

  6. #6
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    There wouldn't be an issue there... that would show as
    HTML Code:
    <a href="#" title="text with an something in it">

  7. #7
    Member
    Real Name
    Ted
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    54
    Liked
    0 times
    See my edit above. When acronyms are set to use ABBR or ACRONYM replacements, this becomes a huge problem.
    - the makers of VaultWiki

  8. #8
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    if it's set to apply to urls - no, then it shouldn't even be in there.
    "urls" to no

  9. #9
    Member
    Real Name
    Ted
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    54
    Liked
    0 times
    And I do have it set to no, and it's still in there.

    Even so, if that setting only affects URLs, acronyms also affect alt attributes in images. Many other HTML elements have the title attribute, but that's ignoring that this can occur in any attribute (or on the tag or attribute name itself!)

    You can just use your imagination and see (and go ahead and test) that this can break any HTML in any way if this replacement doesn't exclude text between < >
    - the makers of VaultWiki

  10. #10
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    That shouldn't be showing there if set to no. I'll flag this for a developer to review.

  11. #11
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Hello,

    it seems to work correctly for me, could you please open a ticket with ftp/vbseocp access and example URL to check this further?

  12. #12
    Member
    Real Name
    Ted
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    54
    Liked
    0 times
    This was only occurring in the article view of CMS articles. This was an Execute Order issue between vBSEO and VaultWiki, which both perform URL-related replacements. I have made sure that vBSEO's replacement occurs last, and this issue went away.
    - the makers of VaultWiki

  13. #13
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    I see, thank you for details!

Similar Threads

  1. vBulletin 4.x VBSEO 3.5 RC2 Break 4.0.1 CMS
    By thunderclap in forum Troubleshooting
    Replies: 17
    Last Post: 01-31-2010, 08:59 PM
  2. Break down articles into multiple pages - SEO?
    By len backus in forum General Discussion
    Replies: 3
    Last Post: 08-15-2008, 08:02 PM
  3. Will uninstall break links?
    By Doug Nelson in forum General Discussion
    Replies: 12
    Last Post: 10-31-2007, 08:53 PM
  4. DID VBSEO break my skin?
    By RaceJunkie in forum General Discussion
    Replies: 4
    Last Post: 04-18-2007, 09:52 PM
  5. Nested comments break layout..
    By john in forum Bug Reporting
    Replies: 3
    Last Post: 09-09-2006, 02:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •