WWW::Noss::TextToHtml − Convert text to HTML
use
WWW::Noss::TextToHtml(text2html);
my $html = text2html($text);
WWW::Noss::TextToHtml is a module that provides subroutines for converting plain text to HTML. This is a private module, please consult the noss manual for user documentation.
Subroutines are
not exported automatically.
$html = text2html($text)
Converts the given string $text to HTML.
$escaped = escape_html($text)
Escapes the given text by converting special HTML characters ("<", ">", and "&") into their entity equivalents.
$unescaped = unescape_html($text)
Unescapes the given text by converting HTML entities to their string equivalents.
$stripped = strip_tags($text)
Strips HTML tags from the given text.
Written by Samuel Young, <[email protected]>.
This project's source can be found on its Codeberg page <https://codeberg.org/1-1sam/noss.git>. Comments and pull requests are welcome!
Copyright (C) 2025 Samuel Young
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
noss