]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Send raw UTF-8 chars instead of escaped entities in newnotice.php's ajax response
authorZach Copley <zach@controlyourself.ca>
Sun, 23 Nov 2008 19:37:27 +0000 (14:37 -0500)
committerZach Copley <zach@controlyourself.ca>
Sun, 23 Nov 2008 19:37:27 +0000 (14:37 -0500)
darcs-hash:20081123193727-7b5ce-0771232a9771e1325f937ccc87e6ba319dd97590.gz

actions/newnotice.php

index 06ee5778c8e5e5ff4832a07ba19df44bf3944a2c..3c9c499c237fbed09857beea50ad4cb5def2e90e 100644 (file)
@@ -220,14 +220,15 @@ class NewnoticeAction extends Action {
                                                                   'onclick' => 'return doreply("'.$profile->nickname.'", '.$notice->id.');',
                                                                   'title' => _('reply'),
                                                                   'class' => 'replybutton'));
-               common_raw('&rarr;');
+               common_raw(html_entity_decode('&rarr;', ENT_NOQUOTES, 'utf-8'));
+               
                common_element_end('a');
                if ($user && $notice->profile_id == $user->id) {
                        $deleteurl = common_local_url('deletenotice', array('notice' => $notice->id));
                        common_element_start('a', array('class' => 'deletenotice',
                                                                                        'href' => $deleteurl,
                                                                                        'title' => _('delete')));
-                       common_raw('&times;');
+                       common_raw(html_entity_decode('&times;', ENT_NOQUOTES, 'utf-8'));
                        common_element_end('a');
                }
                common_element_end('p');