Results 1 to 5 of 5
  1. #1
    Newbie
    Join Date
    June 22nd, 2005
    Location
    France
    Posts
    33
    Insertion of fields containing html codes
    Hi,

    I encounter a difficulty with WebMerge. What I want to inject in the template is rewrite by WebMerge. Some characters are translated. For example: < is injected as &lt;

    If I want to inject a field containing
    <a href="http://zeroads.com/flash/default.asp" target="_blank"> ZeroAds</a>

    I got in the generated page
    &lt;a href=&quot;http://zeroads.com/flash/default.asp&quot; target=&quot;_blank&quot;&gt; ZeroAds&lt;/a&gt;

    Is there a workaround?

    Thanks

  2. #2
    Full Member heisje's Avatar
    Join Date
    January 18th, 2005
    Posts
    314
    .

    for wm-field, use the raw and nolink attributes where necessary.
    or use wm-include if you do not need to use a field in a database.


    hope this works,
    heisje

    .

  3. #3
    Newbie
    Join Date
    June 22nd, 2005
    Location
    France
    Posts
    33
    Hi Heisje

    What do you mean by "row"?
    I try to clear up me in English but I have gaps.

    Well, here is what I have in .xls
    html string is good looking


    I export this in a file in .csv. I got this (looking at it with NotePad)
    html string is good looking


    WebMerge source tab is, then


    WebMerge detail page tab is as


    What I get is a displayable text with html tags converted as text! One of my fields is html content but WM inject it with translation. How to inhibit this translation?
    html string is looking as visual text


    The source code is
    Code:
    <td class="tl5_citation"><strong><font color="#dd0000">Commande lancée au démarrage de Windows - N'est pas un processus du gestionnaire de tâches.</font><br>
    &lt;a href=&quot;http://zeroads.com/flash/default.asp&quot; target=&quot;_blank&quot;&gt; ZeroAds&lt;/a&gt; - tue les publicit&amp;eacute;s, les cookies et les popups. Dit &amp;agrave; ZeroAds de ne pas se lancer au d&amp;eacute;marrage - n&amp;eacute;cessaire de le lancer manuellement<br></strong></td>
    Instead of

    Code:
    <td class="tl5_citation"><strong><font color="#dd0000">Commande lancée au démarrage de Windows - N'est pas un processus du gestionnaire de tâches.</font><br>
    <a href="http://zeroads.com/flash/default.asp" target="_blank"> ZeroAds</a> - tue les publicit&eacute;s, les cookies et les popups. Dit &agrave; ZeroAds de ne pas se lancer au d&eacute;marrage - n&eacute;cessaire de le lancer manuellement<br></strong></td>
    An idea ?

    Thanks

  4. #4
    Affiliate Manager
    Join Date
    January 18th, 2005
    Location
    Los Angeles, California
    Posts
    1,913
    Use the "raw" attribute -- from the WebMerge Help page on the WM-Field tag:
    ----------------
    Using the raw attribute
    By default, WebMerge converts field data to HTML. The conversion changes all non-ASCII characters to their corresponding character entity according to the ISO 8859-1 standard. For example, the character "<" becomes "&lt;". This attribute is useful if your database contains some fields whose data is already in HTML format, to prevent WebMerge from altering it for Web display. If your field already contains HTML, you can tell WebMerge not to perform this conversion by using the raw attribute.
    Richard Gaskin
    Developer of WebMerge: Publish any data feed on any site
    http://www.fourthworld.com

  5. #5
    Newbie
    Join Date
    June 22nd, 2005
    Location
    France
    Posts
    33
    Ok
    I have understand. Working fine.
    I open a new thread for an other question.
    Thanks.

    How to edit first post of a thread in order to put an "Ok" or "Closed" in the subject ?

  6. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Featured: HTML codes of advertisers and URL links on browser: Are they substitute?
    By Splendid1008 in forum Midnight Cafe'
    Replies: 6
    Last Post: June 28th, 2014, 08:04 AM
  2. Can't Put Fields In Html Title, Keyword, and Description?
    By tfftff in forum WebMerge (Fourthworld.com)
    Replies: 8
    Last Post: September 16th, 2007, 09:01 AM
  3. Replies: 1
    Last Post: February 9th, 2005, 12:49 PM
  4. Fields and html
    By cjk in forum Programming / Datafeeds / Tools
    Replies: 4
    Last Post: April 15th, 2004, 08:52 PM
  5. help reading html codes on AOL
    By benjy in forum Commission Junction - CJ
    Replies: 1
    Last Post: September 10th, 2003, 09:17 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
  •