Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Formatting by storing HTML in MySQL, FuelPHP output encoding
  • Hello, This is my first post and I'm currently developing a web app using FuelPHP. What would be the best approach for storing formatting of articles/blog posts. I was thinking of storing HTML tags in the database, but FuelPHP encodes all output - I'm not too keen on turning off this encoding - for example: if for any chance someone was able to inject JavaScript into the database our users would still be protected. Looking forward to your replies,
    Thank you!
  • For the Fuel Depot project we're going to use Markdown for all documentation, comments, blogs etc. FuelPHP has a markdown parser available as part of the core, and there are plenty of WYSIWYG editors available to make it easy for your users to write markdown syntax.
  • How do I access the markdown parser?
  • Not sure it's available in the 1.1 release (if you use that, 1.2 is on the way...). If you're using 1.1/develop, see http://fueldevdocs.exite.eu/classes/markdown.html We're using the Markdown Extra parser from http://michelf.com/projects/php-markdown.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion