We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d86df5c commit fb267cfCopy full SHA for fb267cf
inc/question.class.php
@@ -501,21 +501,10 @@ public function prepareInputForUpdate($input) {
501
}
502
503
504
- $input = $this->addFiles(
505
- $input,
506
- [
507
- 'force_update' => true,
508
- 'content_field' => null,
509
- 'name' => 'description',
510
- ]
511
- );
512
-
513
- $input['description'] = Html::entity_decode_deep($input['description']);
514
foreach ($input['_tag_description'] as $tag) {
515
$regex = '/<img[^>]+' . preg_quote($tag, '/') . '[^<]+>/im';
516
$input['description'] = preg_replace($regex, "#$tag#", $input['description']);
517
518
- $input['description'] = Html::entities_deep($input['description']);
519
520
521
// generate a unique id
0 commit comments