0
当然你可能听说过HtmlPurifier。我使用linkify功能 - 自动将网址转换为a
标签。所以,现在我只想显示主机名,但在href
属性中保留完整的url。HtmlPurifier:只显示Linkify的主机名称
实施例:
http://www.website.com/article/123-some-cool-article.html
应转换为
<a href="http://www.website.com/article/123-some-cool-article.html">http://www.website.com</a>
这可能吗?
是的,谢谢,发现它 – Darmen 2011-02-07 08:16:40