When rendering titles in the breadcrumb it does not handle special characters...
See screenshot.
| Comment | File | Size | Author |
|---|---|---|---|
| Showing special characters as html | 7.98 KB | philosurfer |
When rendering titles in the breadcrumb it does not handle special characters...
See screenshot.
| Comment | File | Size | Author |
|---|---|---|---|
| Showing special characters as html | 7.98 KB | philosurfer |
Comments
Comment #1
philosurfer commentedAcctually finding out its the drupal_get_title() function... it runs check_plain() which is:
I will try and work on a patch.
Comment #2
sonemonu commentedThis is not a bug of the EasyBreadcrumb module.
Comment #3
philosurfer commentedHow do you figure?
Comment #4
sonemonu commentedHi philosurfer,
I just deduced it from your previous comment, you said it's related to the "drupal_get_title()" function (from the Drupal core code). Thus it's not a bug of this module. Are u talking about implementing a feature in this module for handling special characters?
@philosurfer:
Acctually finding out its the drupal_get_title() function... it runs
check_plain() which is:
function check_plain($text) {
return htmlspecialchars($text, ENT_QUOTES, 'UTF-8');
}
I will try and work on a patch.
Comment #5
philosurfer commentedyeah the problem exists when you use a ' in the title.. because drupal_get_title() returns results HTML friendly, it causes your module to render that HTML code in plain text...
I tried several other characters and it seemed to be fine....
Comment #6
sonemonu commentedI've tested this using the following hard-code script and it is correctly rendering the text "It's working..." in the breadcrumb. So this is no related to the "drupal_get_title()" function.
Thus it seems the origen of this issue is coming from the characters in the URL. Some questions:
Important Note: please go to the Pathauto's settings page ("admin/config/search/path/settings"), under PUNCTUATION, and be sure the option Single quotation marks (apostrophe) (') is set to "Remove".
Comment #7
sonemonu commented