Website Maintenance Message and HTML
Is there a way to stop HTML that is put into the "Date and hours for notice before maintenance" message from being converted to escaped characters? For instance if I try to put a link in the message for more information this all gets stripped out and replaced with the special char handing like < etc.
I tried adding PERIOD_BEFORE_DOWN_FOR_MAINTENANCE to $configs_with_special_characters in admin/includes/init_includes/init_sanitize.php however the href=" was still being altered by the sanitize class.
Re: Website Maintenance Message and HTML
I sorted this out by also adding the code as below, but if there's a better way please let me know.
Code:
if (!$checks->EOF) {
if (!empty($checks->fields['val_function']) || $cID === 462) {
$group = array('configuration_value' => array('sanitizerType' => 'NULL_ACTION', 'method' => 'post'));
Re: Website Maintenance Message and HTML
Try this..
HTML Code:
<!DOCTYPE html>
<html>
<head>
<title>Website Maintenance</title>
</head>
<body>
<div class="maintenance-message">
<h1>Website Maintenance</h1>
<p>Our website is currently undergoing maintenance. Please check back later.</p>
<p>For more information, <a href="https://example.com/maintenance-details">click here</a>.</p>
</div>
</body>
</html>