Log message #3882187

# At Username Text
# May 28th 2016, 21:24 ionas body = markdown, rendered_body = h() -> markdown() ->
# May 28th 2016, 21:24 Xeus this app was created a long time ago
# May 28th 2016, 21:24 Xeus I am using 2.8
# May 28th 2016, 21:24 ionas if it is create a virtual property in the entity
# May 28th 2016, 21:23 ionas cakephp3?
# May 28th 2016, 21:23 ionas maybe it has composer support now
# May 28th 2016, 21:23 Xeus yeah I am sure mine is out of date
# May 28th 2016, 21:23 Xeus nice
# May 28th 2016, 21:23 ionas but maybe parsedown is good, I had good xp with it
# May 28th 2016, 21:23 Xeus ok
# May 28th 2016, 21:22 ionas yeah h() is convenience with some default around htmlentities afair
# May 28th 2016, 21:22 ionas it should not â??changeâ? over multiple saves
# May 28th 2016, 21:22 Xeus I am doing output -> htmlentities() -> markdown() right now
# May 28th 2016, 21:22 ionas try to save the same body multiple times
# May 28th 2016, 21:22 Xeus ok
# May 28th 2016, 21:21 ionas then Iâ??d do: input -> save; output -> h() -> markdown()
# May 28th 2016, 21:21 ionas ah ok
# May 28th 2016, 21:21 Xeus so people can make wiki pages about html
# May 28th 2016, 21:21 ionas however then h() is right
# May 28th 2016, 21:21 ionas why?
# May 28th 2016, 21:21 Xeus just convert to html entities
# May 28th 2016, 21:21 ionas ah
# May 28th 2016, 21:21 ionas on output: h() then parsedown -> render
# May 28th 2016, 21:21 Xeus I want to keep the tags
# May 28th 2016, 21:20 ionas so on input: strip_tags() then store to database
# May 28th 2016, 21:20 ionas and Xeus: http://php.net/manual/en/function.strip-tags.php
# May 28th 2016, 21:20 Xeus I will check that out
# May 28th 2016, 21:20 ionas Iâ??d probably use Parsedown PHP Library
# May 28th 2016, 21:20 ionas cool
# May 28th 2016, 21:19 Xeus I am going to be creating a SAAS product from it to allow people to spin up their own wikis
# May 28th 2016, 21:19 Xeus I am updating an old wiki app I created to CakePHP 2.8 and docker: https://github.com/Dynamictivity/sqwiki/blob/master/View/Helper/MarkdownHelper.php#L11
# May 28th 2016, 21:19 ionas h()
# May 28th 2016, 21:18 ionas php strip_tags
# May 28th 2016, 21:18 ionas Xeus: good :)
# May 28th 2016, 21:18 Xeus I am already using markdown
# May 28th 2016, 21:17 ionas and offer parsedown php library (markdown)
# May 28th 2016, 21:17 ionas another way is to just strip all tags
# May 28th 2016, 21:17 Xeus thanks
# May 28th 2016, 21:17 ionas Google HTML Purifier + HTML5
# May 28th 2016, 21:16 ionas if not you can use htmlentities() or Html Purifier (3rd party lib)
# May 28th 2016, 21:16 ionas take a look at the original Sanitize::html() and h() and see if h does enough