mirror of
https://github.com/til-schneider/slim-wiki.git
synced 2025-08-13 20:14: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:
@@ -82,7 +82,7 @@ if ($mode != 'view') {
|
|||||||
|
|
||||||
if ($mode == 'edit') {
|
if ($mode == 'edit') {
|
||||||
?><div id="editor-wrapper">
|
?><div id="editor-wrapper">
|
||||||
<textarea id="editor"><?php echo str_replace('<', '<', $data['articleMarkdown']); ?></textarea>
|
<textarea id="editor"><?php echo str_replace('<', '<', str_replace('&', '&', $data['articleMarkdown'])); ?></textarea>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
if (slimwiki.supportedBrowser) {
|
if (slimwiki.supportedBrowser) {
|
||||||
|
Reference in New Issue
Block a user