Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:help_text should recognize html tags #284

Closed
Nataliya opened this issue Mar 20, 2012 · 4 comments
Closed

:help_text should recognize html tags #284

Nataliya opened this issue Mar 20, 2012 · 4 comments

Comments

@Nataliya
Copy link
Contributor

:help_text used to recognize html tags but not any more

Example below:

:help_text => "<i>If yes, ask for an example and if this is typical behavior.</i>"

will be displayed on the page as;

<i>If yes, ask for an example and if this is typical behavior.</i>

Same with <b>,<u> and I assume others that were supported.

@rsutphin
Copy link
Contributor

Do you know around when this behavior changed? It may be the result of using a more recent Rails version. In Rails 3 (I think) Rails started escaping all strings unless they are explicitly safed. This is a security measure, but it is probably reasonable for Surveyor to assume that DSL-provided strings are already safe.

@Nataliya
Copy link
Contributor Author

The latest it used to work for is under rails 2.3.11

@yoon
Copy link
Member

yoon commented Feb 1, 2013

I don't think that HTML is the best choice for formatting in Surveyor, since we expect the same survey definition to work for surveyor and nu_surveyor. #285

@yoon
Copy link
Member

yoon commented Feb 6, 2013

Consolidated into #413

@yoon yoon closed this as completed Feb 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants