【发布时间】:2021-03-19 12:33:45
【问题描述】:
如何解析字符串并将文本链接更改为 HTML 链接。
例如:
Hello world: [a href="https://example.com"]See example[/a].
收件人:
Hello world: <a href="https://example.com">See example</a>.
我还必须确定目标 URL,如果指定了域,我必须将选项 target="_blank" 添加到 HTML 链接。
【问题讨论】:
标签: php string parsing hyperlink