Community Forums

ATutor Support

converting


You must be signed-in to post.

AuthorSubject
 
Page: 1
gviabcua

Avatar for gviabcua
Subject: convertingQuote this post in your reply
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
Posted: 2016-12-28 04:51:14
gviabcua

Avatar for gviabcua
Subject: Re: convertingQuote this post in your reply
For example: I don't need to use & l t ; p & g t ; tag in mysqlDB, i need <p> tag
Posted: 2016-12-28 04:56:43
greg

Avatar for greg
Subject: Re: convertingQuote this post in your reply
What version of ATutor are you using?
What question type is giving you the problem?
Posted: 2016-12-28 09:45:42
gviabcua

Avatar for gviabcua
Subject: Re: convertingQuote this post in your reply
versiom 2.2.2 patch 007
mainly multichoice or multianswer

In reply to:
What version of ATutor are you using?
What question type is giving you the problem?

Posted: 2016-12-28 10:00:06
gviabcua

Avatar for gviabcua
Image2.png

Attachment: Image2.png
Subject: Re: convertingQuote this post in your reply
attachment
Posted: 2016-12-28 10:04:59
greg

Avatar for greg
Subject: Re: convertingQuote this post in your reply
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.
Posted: 2016-12-28 10:56:46
gviabcua

Avatar for gviabcua
Subject: Re: convertingQuote this post in your reply
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
Posted: 2016-12-29 01:11:35
greg

Avatar for greg
Subject: Re: convertingQuote this post in your reply
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?
Posted: 2016-12-29 09:59:00
gviabcua

Avatar for gviabcua
Newsandsomestatistics.pdf
Subject: Re: convertingQuote this post in your reply
Some of my changes in the attached file

I think you can understand
Posted: 2016-12-29 18:40:48
greg

Avatar for greg
Subject: Re: convertingQuote this post in your reply
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.
Posted: 2016-12-29 19:05:54
gviabcua

Avatar for gviabcua
Subject: Re: convertingQuote this post in your reply
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

In reply to:
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 ...

Posted: 2016-12-30 02:31:32
 
Page: 1

You must be signed-in to post.

Related Articles