Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.

willybahuaud — You need to use escape functions for i18n #13

Closed
wants to merge 1 commit into from

Conversation

mcaskill
Copy link
Owner

From tomaszsita#68:

Hello, I suggest you 2 improvements :

  • the first improvment is to use escape i18n functions (like esc_attr__ or esc_html__) instead of regular i18n ones. In fact, french translation break your inline script because of simple quotes into text strings…
  • the second on is to pass $ as jQuery(document).ready(). It allows to use $in place of jQuery inside your inline JavaScript code.

Hello, I suggest you 2 improvements :
- the first improvment is to use escape i18n functions (like `esc_attr__` or `esc_html__`) instead of regular i18n ones. In fact, french translation break your inline script because of simple quotes into text strings… 
- the second on is to pass `$` as `jQuery(document).ready()`. It allows to use `$`in place of `jQuery` inside your inline JavaScript code.
@mcaskill mcaskill closed this Sep 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant