[英]How to escape the & in an Outlook MailItem attachment display name
We have clients that contain an & in their name (eg A&W Rootbeer, etc). 我们的客户名称中包含&(例如A&W Rootbeer等)。 When we try to combine the client name with other verbiage, it either converts the & to an underline in the next letter or escapes and replaces it with a back slash.
当我们尝试将客户名称与其他用法组合时,它会在下一个字母中将&转换为下划线,或者转义并将其替换为反斜杠。 I'm guessing this pertains to menu items and things of that nature where an & represents a hot key and is intentionally converted to an underline of the next letter.
我猜这与菜单项和类似性质的事物有关,其中&代表热键,并有意转换为下一个字母的下划线。 Any ideas on how to correctly escape the & so that it displays properly?
关于如何正确转义&以便正确显示的任何想法?
You need to double up the &
to escape it. 您需要加倍
&
以使其逃逸。 For example A&W Rootbeer
should be A&&W Rootbeer
. 例如,
A&W Rootbeer
应该是A&&W Rootbeer
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.