Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
page content storage
#1
(This is something that some users have requested several times in the past...)

I suggest that for some future GS release the content is not stored with addslashes and htmlentities, but as raw HTML.

Of course this would require many plugins to be adapted, so it would be better doing it in a major release (version 4 maybe?).

For backwards compatibility with old page data files without having to run an upgrade script, I can think of 2 ways to handle it:

A) Have a new field, e.g. format. For example:
<format>1</format> = pure HTML
<format>0</format> (or empty or no field) = old-style addslashes+htmlentities

or

B) Use a new field for raw html, e.g. html or htmlcontent.
GS would check if that field exists, else it would use the content field (decoding, etc.)
Reply
#2
In XML do you not have to escape ?
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#3
AFAIK not needed if it's between <![CDATA[ and ]]>
Reply
#4
So is this a pre simplexml extended thing that was done ?
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#5
Chris only knows.
Reply
#6
Hmm we can add a new flag or change the file version and change this in the future.
I notice we are usin cdata for everything. Odd
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#7
This will also allow us to save xml files as true utf-8, not encoded junk.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#8
https://github.com/GetSimpleCMS/GetSimpleCMS/issues/618
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)