The xssProtection property (string) enables the built-in cross-site scripting (XSS) protection.
DayPilot.Month.xssProtection"Enabled" - HTML-encodes text strings supplied through the API.
"Disabled" - leaves developer-supplied text strings unescaped.
"Enabled"When XSS protection is enabled, text values provided through the API are escaped automatically before rendering. Disable it only when you need to render trusted HTML content.
JavaScript
const dp = new DayPilot.Month("dp", {
xssProtection: "Disabled",
// ...
});
dp.init();Angular
<daypilot-month [config]="config"></daypilot-month>config: DayPilot.MonthConfig = {
xssProtection: "Disabled",
// ...
};React
<DayPilotMonth
xssProtection="Disabled"
{/* ... */}
/>Vue
<DayPilotMonth
xssProtection="Disabled"
<!-- ... -->
/>