简体   繁体   English

Drupal 节点在渲染时生成不需要的 html

[英]Drupal node generates unwanted html while rendering

I added content on drupal backend in backend content looks good like below (in table also)我在后端内容 drupal 后端添加了内容,如下所示(也在表中)

<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),但是在查看或预览上面的元素时,呈现如下(在 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?我尝试清除缓存,检查数据库表中的值,但无论我尝试什么<a href=" http:="">http://myurl.com</a>"&gt这部分都搞砸了,知道吗?

You can fix it by disabling the "Convert URLs into links" setting of the input format.您可以通过禁用输入格式的“将 URL 转换为链接”设置来修复它。

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". Go 到“管理”>“站点配置”>“输入格式”,单击特定(无论您使用哪种)输入格式旁边的“配置”,并禁用“将 URL 转换为链接”。 This setting is responsible for turning email addresses and URLs into links.此设置负责将 email 个地址和 URL 变成链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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