htmlentities -> htmlspecialchars
This commit is contained in:
@@ -49,7 +49,7 @@ if(isset($_POST['news_id'])){
|
||||
|
||||
$row = $result[0];
|
||||
|
||||
$title = htmlentities($row['title'],ENT_QUOTES,"UTF-8");
|
||||
$title = htmlspecialchars($row['title'],ENT_QUOTES,"UTF-8");
|
||||
$content = $row['content'];
|
||||
$showInMenu = $row['menu'] == 1;
|
||||
}
|
||||
@@ -67,7 +67,7 @@ if(isset($_POST['news_id'])){
|
||||
</label>
|
||||
</p>
|
||||
<p align=left>
|
||||
<textarea class=kindeditor name=content rows=41 ><?php echo htmlentities($content,ENT_QUOTES,"UTF-8")?>
|
||||
<textarea class=kindeditor name=content rows=41 ><?php echo htmlspecialchars($content,ENT_QUOTES,"UTF-8")?>
|
||||
</textarea>
|
||||
</p>
|
||||
<?php require_once("../include/set_post_key.php");?>
|
||||
|
||||
Reference in New Issue
Block a user