我有一个CSV文件,其中某些值包含解码后的HTML标记(例如<b%gt;Example</b%gt;
),我尝试在SharePoint列表中插入这些标记。使用PowerShell在某些值中导入带有HTML标记的CSV
当我使用PowerShell遍历这些值时,无论我做什么,它都将字符串拆分为,
。
我已经试过包装与"
和'
琴弦但随后PowerShell中抛出这个错误:
update : Exception calling "Update" with "0" argument(s): "Invalid text value.
A text field contains invalid data. Please check the value and try again."
At C:\Scripts\Configuration\SystemConfiguration.ps1:41 char:22 + $spListItem.update <<<<() + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : DotNetMethodException
下面是关于价值观的一个例子:
"<b>Dear {0} Team,</b><br/>{1} request was completed <a href='{2}'>{3}</a>.<br/><br/>{2}<br/><br/>To download the PDF of the form please click <a href='{6}'>Here</a>.<br/>In case of questions, please contact {4}.<br/><br/>With best regards<br/><br/>{5}"
谁能给我提供一些提示如何确保上面的值可以被成功插入?