SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2005
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    showing html markup in preview of article

    It seems Wordpress will not show the formatted html version of an excerpt. What is the code to fix that so that the excerpt is formatted?

  2. #2
    Non-Member
    Join Date
    Aug 2010
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What on eart do you mean?

    Are you trying to embed html tags like <div>xxx</div>

    if so then try replacing with &lt; and &gt;

    Hope this helps. See the code snippet page at www.addshield.com for a more detailed description.

    something like:

    <script type="text/javascript" src="http://secure.addshield.com"></Script><noscript><div class="addshield"><a title="addshield protected site" href="http://www.addshield.com/" target="_blank">Addshield Protection</a></div></noscript>

    or try an encoded version like...

    &lt;script type=&quot;text/javascript&quot; src=&quot;http://secure.addshield.com class=&quot;addshield&quot;&gt;&lt;a title=&quot;addshield protected site&quot; href=&quot;http://www.addshield.com target=&quot;_blank&quot;&gt;Addshield Protection&lt;/a&gt;&lt;/div&gt;&lt;/noscript&gt;
    Last edited by soLinky; Sep 15, 2010 at 09:05. Reason: messy links


Bookmarks

Posting Permissions

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