douhui3330 2018-08-07 13:22
浏览 90

在href mailto中使用PHP标签:

I am working in a system that allows for custom system-generated emails to be sent to users.

The system has its own tags (such as [[EMP_NAME]] which outputs the employee's name).

I want to use one of these tags within the body of a <a href="mailto: " link.

However, the tags ( [[EMP_NAME]] ) have their own html tags embedded in them so when it is run, the result of the mailto link displays:

Best regards
<strong>John Smith</strong>

I have tried using <pre > but this just gets included in the mail as well.

I have also tried declaring $strname = <pre>[[EMP_NAME]]</pre> and then including $strname in the link body but with no success.

As this editor is embedded within the software, I'm not sure it's that advanced and I'm probably stretching it as it is - so simplest solution preferred.

Would much appreciate any help with this.

Thanks

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
    • ¥15 lammps拉伸应力应变曲线分析
    • ¥15 C++ 头文件/宏冲突问题解决
    • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
    • ¥50 安卓adb backup备份子用户应用数据失败
    • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
    • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
    • ¥30 python代码,帮调试,帮帮忙吧
    • ¥15 #MATLAB仿真#车辆换道路径规划
    • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建