I use the PHP markup library: http://michelf.com/projects/php-markdown/ and the Javascript markdown library: http://attacklab.net/showdown/
I want to ban all HTML, both versions of markdowns seem to allow this indiscriminately. My first attempt was to simply avoid all html objects before submitting to markdowns. However, it also speeds up the syntax <hyperlink>and <email>, which is very useful.
<hyperlink>
<email>
I would like to avoid all HTML (not delete), but save all the markup syntaxes.
You have two options.
-, HTML, - . lib_filter Cal Henderson ( Flickr) , , - , HTMLPurifier.
-, HTML, , htmlspecialchars, , . .;)
, PHP, Javascript. Ajax- - script, - , . .
Source: https://habr.com/ru/post/1749494/More articles:MySQL removes row after expiration - mysqlWhat is the meaning of height maps? - heightiPhone: infinite looping content inside UIScrollView - iphoneJava double-entry table - javaПочему BackgroundWorker в WPF нуждается в Thread.Sleep для обновления элементов управления пользовательского интерфейса? - c#How to break code for iOS 3.0 and iOS 3.2 so that I can use MPMoviePlayerViewController if OS 3.2 ++ - iphoneFind all the ways from the root to the leaves of the tree in the scheme - lispHow to programmatically duplicate UIViews built into an interface builder? - objective-cDifference between [object variable] and object.variable in Obj-C? - objective-cthe difference between → and. for a member select statement - c ++All Articles