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.

Stray <p> tag appearing, EE or plugin?

October 22, 2010 5:30pm

Subscribe [2]
  • #1 / Oct 22, 2010 5:30pm

    Linda A

    666 posts

    I’ve got this bit of template:

    {exp:weblog:entries weblog="weblog1" limit="1" orderby="date" sort="desc" paginate="bottom" disable="member_data"}
    <div class="IndexPostTitle">{title}</div>
    <div class="IndexPostBody">{exp:limiter paragraphs="1" characters="500"} {1_body}{/exp:limiter}</div>
    <div class="IndexPostLink"><a href="http://{comment_url_title_auto_path}">read on >></a></div>
    {/exp:weblog:entries}

    It results in:

    <div class="IndexPostTitle">Octocon Q&A</div>
    <div class="IndexPostBody">The <a href="http://www.octocon.com/">Octocon</a> Q&A has just wrapped, and we’ve posted <a href="http://www.westeros.org/Citadel/SSM/Entry/4555/">a transcription</a> from lady narcissa (from the <a href="http://asoiaf.westeros.org/">A Song of Ice and Fire forum</a>) to the <a href="http://www.westeros.org/Citadel/SSM/">So Spake Martin collection</a> of correspondence and convention reports. Quite a lot of good material,but be aware that there are some small spoilers here and there for…</div>
    
    <div class="IndexPostLink"><a href="http://www.westeros.org/Updates/Entry/Octocon_QA/">read on >></a></div>

    I have no idea where the tag comes from. Is it the plugin? I looked through the code, though, and couldn’t see anything that referenced inserting a tag. I am completely baffled and apparently it breaks the site entirely on Safari.

  • #2 / Oct 22, 2010 5:38pm

    Sue Crocker

    26054 posts

    If you don’t use the plugin, and let the content come in naturally, do you get the paragraph tag? Are you using XHTML for field formatting?

  • #3 / Oct 22, 2010 5:43pm

    Linda A

    666 posts

    Oh, darn. Would the xhtml field formatting kick in before the plugin gets ahold of the excerpt? I guess that would be the answer then.

    Any way to work around that? Can’t turn off formatting on the field since its the same used for the main blog display. I seem to recall there being a plugin for stripping html, but that stripped everything I think.

    Anyway, thanks, I had my processing order all wrong, it seems like. 😊

  • #4 / Oct 22, 2010 5:46pm

    Sue Crocker

    26054 posts

    Try BR, that might give you a different result.

  • #5 / Oct 22, 2010 5:49pm

    Linda A

    666 posts

    Site formatting depends on the p tags for the main blog post, and its lots of legacy content, so changing now wouldn’t work too well. But I am browsing through the plugin list for other ways of removing just p tags. 😊

  • #6 / Oct 22, 2010 5:54pm

    Sue Crocker

    26054 posts

    Sounds good to me. Anything else would be a HowTo CodeShare Corner question. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases