HTML Type字段,RTE和嵌入代码剥离了脚本标签 [英] HTML Type field, RTE and embed code stripping the script tag

查看:84
本文介绍了HTML Type字段,RTE和嵌入代码剥离了脚本标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些用户希望使用RTE的embed函数将twitter链接嵌入列表中的HTML字段类型.问题是,当脚本标签保存列表条目时,脚本标签将被删除.不管我做什么,它都会不断剥离script标签. 由于我公司中的内容编辑仅限于少数,因此是否有将白名单标记为脚本标记或阻止其进行任何类型的代码剥离/验证的工作?

I have users that wish to embed twitter links in to a HTML field type in a list using the embed function of the RTE. The problem is, the script tag gets removed when they save the list entry entry. No matter what I do, it keeps stripping the script tag. Since content editing is restricted to a minor few in my company, is there anyway to white list the script tag or prevent it from doing any kind of code stripping/validation?

谢谢!

推荐答案

Tesen,

"HTML类型"字段是什么意思?是文本列类型的多行吗?

What do you mean the HTML Type field? Is it the multiple lines of text column type?

如果该列是多行文本,您是否像图片一样嵌入了代码?您能提供截图吗?

If the column is the multiple lines of text, did you embed the code like the picture? Could you please provide the screenshot?

如果是的话,您可以像下面的代码一样添加超链接.

And if so, you could add the hyperlink like the code below.

  < a href =" https://twitter.com/"> twitter</a>

  <a href=" https://twitter.com/"> twitter</a>

还有解决方法.

1.您可以使用功能区中的添加链接(如图片所示).

1. You could use the add link in the ribbon like the picture.

2.您还可以创建一个超链接列以添加超链接.

2. You also could create a hyperlink column to add the hyperlink.

最诚挚的问候,

萨拉范


这篇关于HTML Type字段,RTE和嵌入代码剥离了脚本标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆