table of contents
| WWW::Noss::TextToHtml(3pm) | User Contributed Perl Documentation | WWW::Noss::TextToHtml(3pm) |
NAME¶
WWW::Noss::TextToHtml - Convert text to HTML
USAGE¶
use WWW::Noss::TextToHtml(text2html); my $html = text2html($text);
DESCRIPTION¶
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¶
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.
AUTHOR¶
Written by Samuel Young, <samyoung12788@gmail.com>.
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¶
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.
SEE ALSO¶
noss
| 2025-12-06 | perl v5.40.1 |