vavavr00m / noserub

Automatically exported from code.google.com/p/noserub
0 stars 0 forks source link

HTML characters not displayed correctly on home page. #328

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When a microblogging status update contains special characters 
(specifically "). This shows up on the front page of a site as &quot 
rather than ".

In the permalink page the " is displayed correctly.

Original issue reported on code.google.com by judoco...@gmail.com on 26 Nov 2009 at 4:52

GoogleCodeExporter commented 9 years ago
I have tested on my dev install and the following code in 
recent_micropublish.ctp seems to resolve the issue:

<?php if($data) { ?>
    <div class="widget widget-micropublish halfwidth">
        <h2><?php __('Micropublish'); ?></h2>
            <?php foreach($data as $item) {
                echo '<li>';
                echo $html->link(htmlspecialchars_decode(strip_tags($item['Entry']['title'])), '/entry/' . 
$item['Entry']['id']);
                echo '</li>';
            } ?>
        </ul>
    </div>
<?php } ?>

Original comment by judoco...@gmail.com on 26 Nov 2009 at 8:04

GoogleCodeExporter commented 9 years ago
The same issue and fix applies to recent_noserub_events.ctp.

Original comment by judoco...@gmail.com on 26 Nov 2009 at 10:16

GoogleCodeExporter commented 9 years ago
Applied patch in r1916.

Original comment by dhofs...@gmail.com on 29 Dec 2009 at 9:12