2016-12-28 04:51:14
converting
How to disable converting html tags in test questions? For example: I don't need to use <p> tag in mysqlDB, i need <p> tag
2016-12-28 04:51:14
How to disable converting html tags in test questions? For example: I don't need to use <p> tag in mysqlDB, i need <p> tag
2016-12-28 04:56:43
For example: I don't need to use & l t ; p & g t ; tag in mysqlDB, i need <p> tag
2016-12-28 09:45:42
What version of ATutor are you using?
What question type is giving you the problem?
2016-12-28 10:00:06
versiom 2.2.2 patch 007
mainly multichoice or multianswer
[reply][b]In reply to:[/b]
What version of ATutor are you using?
What question type is giving you the problem?
[op]forums/view.php?fid=7&pid=26119&page=1#26122[/op][/reply]
2016-12-28 10:04:59
attachment
2016-12-28 10:56:46
For security reasons all HTML added to the database must be converted to html entities. They are converted back to HTML when they are rendered in a test question.
2016-12-29 01:11:35
Ok. but how can I disable this function? I delete from /mods/_standard/testscreate_question** files htmlentities and so on. but it doesn't work
2016-12-29 09:59:00
It's not a function. All user input is filtered through htmlspecialchars().
It cannot be disabled without rewriting a lot of code.
Why do you need to disable it?
2016-12-29 18:40:48
Some of my changes in the attached file
I think you can understand
2016-12-29 19:05:54
I'm still not certain why you would need to disable htmlspecialchars(). I don't see anything in the PDF that would suggest a problem.
If you are using custom templates that call questions directly from the database, they'll need to be updated to htmspecialchars_decode() whatever come out of the database.
2016-12-30 02:31:32
in pdf all ok because I manually changed all value of the tags in mysql base because htmspecialchars_decode(), htmlspecialchars() and other does not always work. Thanks, I will think
[reply][b]In reply to:[/b]
I'm still not certain why you would need to disable htmlspecialchars(). I don't see anything in the PDF that would suggest a problem.
If you are using custom templates that call questions directly ...
[op]forums/view.php?fid=7&pid=26119&page=1#26130[/op][/reply]