# |
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 |
# |
May 28th 2016, 19:58 |
marlinc |
Are you actually in that hotel? |
# |
May 28th 2016, 19:58 |
marlinc |
Okay cool! |
# |
May 28th 2016, 19:55 |
Neon1024x |
Hehe, mine is, quite unique I think :p |
# |
May 28th 2016, 19:51 |
marlinc |
There's quite a few talks on APIs though, will be interesting to see what the different approaches are that people use |
# |
May 28th 2016, 19:50 |
marlinc |
You'll probably be fine |
# |
May 28th 2016, 19:50 |
marlinc |
Nice! Looking forward to it* |
# |
May 28th 2016, 19:50 |
Neon1024x |
I hope everyone enjoys it |
# |
May 28th 2016, 19:50 |
marlinc |
Nice! Looking forward |
# |
May 28th 2016, 19:50 |
Neon1024x |
I feel 100% more confident about it now |
# |
May 28th 2016, 19:49 |
Neon1024x |
So I'm in the hotel bar with a beer adding more slides :p |
# |
May 28th 2016, 19:49 |
Neon1024x |
My practise was 30 minutes |