1
0
mirror of https://github.com/til-schneider/slim-wiki.git synced 2025-08-13 12:04:10 +02:00

Fixed: If a page's text contained HTML entities, the were decoded when a page was opened in the editor (so the were destroyed when saving)

This commit is contained in:
til-schneider
2016-02-03 18:53:41 +01:00
parent 92195f431a
commit a6c55c13f4

View File

@@ -82,7 +82,7 @@ if ($mode != 'view') {
if ($mode == 'edit') {
?><div id="editor-wrapper">
<textarea id="editor"><?php echo str_replace('<', '&lt;', $data['articleMarkdown']); ?></textarea>
<textarea id="editor"><?php echo str_replace('<', '&lt;', str_replace('&', '&amp;', $data['articleMarkdown'])); ?></textarea>
</div>
<script type="text/javascript">
if (slimwiki.supportedBrowser) {