简体   繁体   中英

Drupal node generates unwanted html while rendering

I added content on drupal backend in backend content looks good like below (in table also)

<p><a href="http://myur.coml"><span style="font-size:18px;"><strong>CLICK TO WATCH</strong></span></a></p>

But in view or preview the above element rendered as like below(inspected in chrom),

<p><a href="<a href=" http:="">http://myurl.com</a>"&gt;<span style="font-size:18px;"><strong>CLICK TO WATCH</strong></span></p>

I tried clearing cache, checked database table for the value but whatever i tried <a href=" http:="">http://myurl.com</a>"&gt this part is messed up, any idea?

You can fix it by disabling the "Convert URLs into links" setting of the input format.

Go to Administer > Site Configuration > Input Formats, click "configure" next to the particular (whichever you are using it) input format, and disable the "Convert URLs into links". This setting is responsible for turning email addresses and URLs into links.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM