1. Home
  2. Installation & Configuration
  3. Install VisualSP Classic
  4. Enable and Disable Scripts in Help Items in VisualSP Classic

Enable and Disable Scripts in Help Items in VisualSP Classic

Applies to: VisualSP Classic
Print Friendly, PDF & Email
By default, VisualSP Classic automatically sanitizes code entered when using the Custom EMBED or OBJECT Tag Viewer / Media Type to remove scripts and javascript: links. This is done to prevent potential cross site scripting (XSS) attacks. If you have a business need to use scripts or javascript: links within your VisualSP Help Items, this can be enabled. The following PowerShell commands should be done within the SharePoint 2016 Management Shell running as Administrator. To enable scripts within VisualSP, use the following command: Set-VisualSPSettings -DisableSanitization $true To disable scripts within VisualSP, use the following command (Note: this is the default setting): Set-VisualSPSettings -DisableSanitization $false To view the current settings, use the following command: Get-VisualSPSettings | Format-List Note: These commands were introduced in VisualSP 5.5.0.0. When you upgrade to 5.5.0.0 or above, this setting will automatically be set to FALSE. If you previously had help items that used scripts, you will need to disable sanitization for those help items to continue to run as before.
Updated on April 1, 2020

Related Articles