'; ?> <?php echo Filters::noXSS($fs->prefs['page_title']); ?> FS#<?php echo Filters::noXSS($row['task_id']); ?>: <?php echo Filters::noXSS($row['item_summary']); ?> /', '>', $data); $data = preg_replace('/"/', '"', $data); $data = nl2br($data); } else { // Assume a new entry. Problem cases when old entry started with // < are just not handled. Must draw the line somewhere, even if the // browser will not show it or has an error. Those cases should be quite few. } // Single case. Old entry that started with <. Can contain &'s too. // Convert to entity, without touching already existing entities. $data = preg_replace('/&(?!([a-z]+|#[0-9]+);)/', '&', $data); // Still double quotes there? Convert any not appearing inside tags. // Not sure if ckeditor makes that kind of entries. $data = preg_replace('/"(?=[^>]*(<|$))/', '"', $data); $data = TextFormatter::render($data); } ?> ]]>