'; ?> <?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 an old entry started with // < are just not handled well. Must draw the line somewhere, even if the // browser will not show it or has an error. Those cases should be quite few. } // Chrome complained loudly about this one. Firefox just didn't show anything... // Any more html entities produced by ckeditor that should be turned into // a numeric character reference? Add when found. Or check if we already have // somewhere an existing function to do that. $data = preg_replace('/ /', ' ', $data); // 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); // Best alternative, although will strip some odd custom data from old entries. echo TextFormatter::render($data); } ?>
: