Dotclear

Ticket #482 (closed defect: invalid)

Opened 17 years ago

Last modified 17 years ago

bug remove_html associé au ///html wiki

Reported by: kozlika Owned by: olivier
Priority: normal Milestone: 2.2
Component: module:core Version: 2.0
Severity: normal Keywords:
Cc:

Description

Lorsque la partie comprise dans une chaîne contient du html inséré dans le wiki, les balises html sont conservées malgré le remove_html.

Pour reproduire le bug si j'ai mal formulé : ma saisie wiki est la suivante :

!!!Structure
!!Sous DotClear 1.x.x
///
<div id="trackbacks">
  <h3 id="tb">Trackbacks</h3>
    <p id="c1" class="comment-info"> <span class="comment-number"><a>n° x</a></span>la date <strong>l'auteur</strong></p>
[...]

Dans mon template j'ai mis ça :

{{tpl:EntryContent remove_html="1" cut_string="100"}}

La source donne :

Structure Sous DotClear 1.x.x <div id="trackbacks"> 
<h3 id="tb">Trackbacks</h3> <p …="" id="c1"></p>

Change History

comment:1 Changed 17 years ago by kozlika

  • Status changed from new to closed
  • Resolution set to invalid

Bon j'ai compris. Avant remove_html="1" il faut placer un encode_html="1". Désolée pour le bruit ! (je l'ajoute à la doc du tag).

Note: See TracTickets for help on using tickets.

Sites map