So my code is :
<li>
<label for="summary">Article Summary</label>
<textarea name="summary" id="summary" placeholder="Brief description of the article" required maxlength="1000" style="height: 5em;"><?php echo htmlspecialchars( $results['article']->summary )?></textarea>
<script type="text/javascript">
CKEDITOR.replace( 'summary' );
</script>
</li>
<li>
<label for="content">Article Content</label>
<textarea name="content" id="content" placeholder="The HTML content of the article" required maxlength="100000" style="height: 30em;"><?php echo htmlspecialchars( $results['article']->content )?></textarea>
<script type="text/javascript">
CKEDITOR.replace( 'content' );
</script>
</li>
But only the content editor is correctly storing the code, the summary editor is adding in additional characters into the code which content does not.
The input code is test test test for both text areas
but the outputted code is:
summary = ptest test testp
content = test test test
Anyone got any ideas as to why?
I've gone through the docs regarding this as far as I can see this should be happening. I've check my php code for data sanitation and it's the same for both fields so if one works the other should too. Is this a number of instances issue or am I doing something else wrong.
It's like the content for the
It's like the content for the summary is being somehow double sanatised to remove all opening and closing tags or brackets.