Log message #3882178

# At Username Text
# 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
# May 28th 2016, 21:16 Xeus I will check it out, thanks
# May 28th 2016, 21:16 Xeus nope
# May 28th 2016, 21:16 ionas Xeus: did you try h()?
# May 28th 2016, 21:14 Xeus $markup = htmlentities($markup, ENT_QUOTES, 'UTF-8', true);
# May 28th 2016, 21:07 Xeus What is now used in place of Sanitize::html() ?
# May 28th 2016, 20:56 Neon1024x Well nn all! Look forward to the last day of Cakfest
# May 28th 2016, 20:55 Neon1024x I wrote my nickname on my other name badge
# May 28th 2016, 20:55 Neon1024x Yeh
# May 28th 2016, 20:49 marlinc It would have been great if they actual put people's My CakePHP username on the name card thingy