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.

Removing added HTML tags to Custom Field Content

June 28, 2009 4:34pm

Subscribe [1]
  • #1 / Jun 28, 2009 4:34pm

    stage5

    13 posts

    I created custom fields for entering URLS that would I would like to have display in the post as plain text (not converted into HTML links), but as a default it appears EE adds the <a> tag to any full URL entered (example: http://www.google.com), which creates as I’m adding them in frames. Is there any way to stop EE from adding the <a> tags to my entered URLs?

    Example: (This is the snippet I’m having trouble with)

    {exp:weblog:entries weblog="{my_weblog}" orderby="date" sort="desc" limit="1"}
    <FRAMESET rows="40px,*" BORDER=no >
    <frame src="top_frame">
    <frame src="{posturl}"/>
    </FRAMESET>
    {/exp:weblog:entries}


    Produces this:

    <FRAMESET rows="40px,*" BORDER=no >
    <frame src="top_frame">
    
    <frame src="<a href="http://www.google.com">http://www.google.com</a>">
    </FRAMESET>

    Super super thanks in advance.

    Danny

  • #2 / Jun 28, 2009 5:25pm

    Greg Aker

    6022 posts

    Danny:

    Go to:

    CP Home ›  Admin ›  Weblog Administration ›  Weblog Management ›  Edit Weblog Preferences ›  Weblog Posting Preferences ›  Automatically turn URLs and email addresses into links? == NO

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

ExpressionEngine News!

#eecms, #events, #releases