我怎么做它所以文本框只允许CSS? [英] How do I make it so a text box only allows css?
本文介绍了我怎么做它所以文本框只允许CSS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的网站有个人资料,我想知道如何制作,所以只有css是可操作的,没有其他代码?因此,如果有人输入< style> CSS HERE< / style>< html> HTML HERE< / html>它会忽略html而只是保留css!
解决方案
我使用了strip_tags(item,< style>< / style>
)
I have my site with profiles and I was wondering how to make it so only css was operational and no other code? So if someone typed <style>CSS HERE</style><html>HTML HERE</html> it would ignore the html and just keep the css!
解决方案
I used strip_tags(item,<style></style>
)
这篇关于我怎么做它所以文本框只允许CSS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文