ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

SAEF inserts P tags unsolved and STRIP HTML adds white space after stripping

September 13, 2010 10:31am

Subscribe [4]
  • #1 / Sep 13, 2010 10:31am

    Est. Studio

    6 posts

    Hi there,

    I have a SAEF form which is inserting tags around the data and not picking up the format options in the custom field as per the bug report here:

    https://support.ellislab.com/bugs/detail/13413/

    I figured I could just strip the html out with the html strip plugin, however this inserts white space at the end of the stripping.

    As per this “non-bug” here:

    http://ellislab.com/forums/viewthread/65360/

    Which states “Whitespace has no meaning in HTML”; However I am compiling a list of semi colon separated emails addresses to be output in a text-area field, which then becomes a problem as whitespace has a very real usage in html when used in a textarea.

    Any suggestions?

  • #2 / Sep 13, 2010 10:49am

    Sue Crocker

    26054 posts

    Are you using EE2.x or 1.x? The bug is for the 2.x version, but you posted in the EE2 forum.

  • #3 / Sep 13, 2010 11:11am

    Est. Studio

    6 posts

    Hi there, the bug is in 1.6.9 as well, I presume it was just carried forward to v2.

  • #4 / Sep 14, 2010 2:27am

    John Henry Donovan

    12339 posts

    Est. Studio,

    I can’t replicate this in EE1.6.9. What build are you using?
    Are you using any extensions?

    Can you walk us through the steps you took to replicate this please?

  • #5 / Sep 14, 2010 6:32am

    Est. Studio

    6 posts

    Many different plugins and addons

    Playa 2
    User 3.2.2
    Super Search 1.2.0
    Freeform 2.7.2
    FieldFrame (v.1.4)
    LG TinyMCE (v.1.3.3)
    BN Title Changer (v.1.0.4)
    Hidden Weblogs (v.1.0.3)
    LG Add Sitename (v.1.2.0)
    Category Rights (v.1.2.2)
    Freeform Spam Prevention (v.1.0.4)
    Edit Menu (v.1.0.2)
    Publish Tweeks (v.0.8)

    And a fair few plugins however the main plugin which is misbehaving and already documented is:

    HTML Stripper (v.1.0.1)

    Which adds a line break after stripping the HTML, it has already been claimed this is not a bug, and it has no effect on html however, this doesn’t take into account textareas where line breaks do directly affect html markup.

    I see the adding of a paragraph tags around custom fields in SAEF is a quirk rather than a bug with a few possible solutions, which i will try now:

    http://ellislab.com/forums/viewthread/99103/#500716
    http://ellislab.com/forums/viewreply/685644/
    http://ellislab.com/forums/viewreply/685663/

    Also i managed to find a fix for the bug with the strip html kindly suggested by derek back in 2007

    http://ellislab.com/forums/viewreply/321425/

  • #6 / Sep 14, 2010 7:23pm

    Brandon Jones

    5500 posts

    Hi Est. Studio,

    OK, it sounds like you might have a solution so keep us posted. If not, please try temporarily disabling extensions so we can rule that out.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases