Cebe Markdown
PHP Markdown
Our great sponsors
Cebe Markdown | PHP Markdown | |
---|---|---|
- | 1 | |
993 | 3,400 | |
- | - | |
0.0 | 1.6 | |
over 1 year ago | 4 months ago | |
HTML | PHP | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Cebe Markdown
We haven't tracked posts mentioning Cebe Markdown yet.
Tracking mentions began in Dec 2020.
PHP Markdown
-
PHP beginner: what's the best way to sanitize text when fetched from the database? Using both strip_taps and htmlspecialchars? I want to sanitize the text but make sure some tags are not turned into HTML entities like <a> and <li>
All joking aside, please sanitize on input, not output. As far as the second part of your question goes, there is no built in partial strip_tags function. The safest thing to do would be to continue using strip_tags on insert in conjunction with something like markdown to convert to the allowed HTML entities.
What are some alternatives?
Parsedown - Better Markdown Parser in PHP
flexmark-java - CommonMark/Markdown Java parser with source level AST. CommonMark 0.28, emulation of: pegdown, kramdown, markdown.pl, MultiMarkdown. With HTML to MD, MD to PDF, MD to DOCX conversion modules.
HTML to Markdown - Convert HTML to Markdown with PHP
Ciconia - A New Markdown parser for PHP5.4
A HTML DOM parser written in PHP - 📜 Modern Simple HTML DOM Parser for PHP
Emoji - A simple PHP library for handling Emoji
CommonMark PHP - Highly-extensible PHP Markdown parser which fully supports the CommonMark and GFM specs.
HTML5 PHP - An HTML5 parser and serializer for PHP.
HTML Purifier - Standards compliant HTML filter written in PHP