Hi, I noticed when we want to create a problem, one Enter is not enough to create a newline, so I must press Enter button twice. In problem.php, I tried to change <?php echo($selected['text']);?> to <?php echo( <pre>".$selected['text']."</pre>");?>, so we can display the preview as we type.
And in index.php, I tried to change echo($out); to echo("<pre>".$out."</pre>");. But there's a problem, it automatically convert twice Enter into p HTML tag, so there's extra newline. How to remove the p tag?
Hi, I noticed when we want to create a problem, one Enter is not enough to create a newline, so I must press Enter button twice. In problem.php, I tried to change
<?php echo($selected['text']);?>
to<?php echo( <pre>".$selected['text']."</pre>");?>
, so we can display the preview as we type.And in index.php, I tried to change
echo($out);
toecho("<pre>".$out."</pre>");
. But there's a problem, it automatically convert twice Enter into p HTML tag, so there's extra newline. How to remove the p tag?