PHP函数将%3c转换回html [英] php function to convert %3c back to html

查看:397
本文介绍了PHP函数将%3c转换回html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个需要转换回html的字符串。它的格式如下:

I have a string that needs to be converted back to html. It's in this format:

%3cli%3e

应该是:

which should be:

<li>

我可以使用什么php函数来转换它?试过html_entity_decode()但没有用。

What php function can I use to convert this? Tried html_entity_decode() but that didn't work.

推荐答案

urldecode()

这篇关于PHP函数将%3c转换回html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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