espaces dans le texte
by toubia95
HTML
<p _ngcontent-koo-c338="" class="clickable-context concordance-context dense"><span class="xml-tag n-l"> <span class="xml-tag n-word" title="verbe conjugué / faire" data-word="fait" data-pos="V" data-lemma="faire">fait</span> <span class="xml-tag n-word" title="déterminant / son" data-word="sa" data-pos="DET" data-lemma="son">sa</span> <span class="xml-tag n-word" title="nom commun / mecine" data-word="mecine" data-pos="NC" data-lemma="mecine">mecine</span> <span class="xml-tag n-word" title="ponctuation / ;" data-word=";" data-pos="PONCT" data-lemma=";">;</span></span><span class="xml-tag n-l"><span class="xml-tag n-word" title="adverbe / ne" data-word="n'" data-pos="ADV" data-lemma="ne">n'</span><span class="xml-tag n-word" title="nom commun / j" data-word="i" data-pos="NC" data-lemma="j">i</span> <span class="xml-tag n-word" title="adjectif / estuet" data-word="estuet" data-pos="ADJ" data-lemma="estuet">estuet</span> <span class="xml-tag n-word" title="adverbe / oingement" data-word="oingement" data-pos="ADV" data-lemma="oingement">oingement</span> <span class="xml-tag n-word" title="adverbe / ne" data-word="n'" data-pos="ADV" data-lemma="ne">n'</span><span class="xml-tag n-word" title="verbe conjugué / entrer" data-word="entrait" data-pos="V" data-lemma="entrer">entrait</span><span class="xml-tag n-word" title="ponctuation / ," data-word="," data-pos="PONCT" data-lemma=",">,</span></span><span class="xml-tag n-l"><span class="xml-tag n-word" title="déterminant / le" data-word="la" data-pos="DET" data-lemma="le">la</span> <span class="xml-tag n-word" title="nom commun / plaie" data-word="plaie" data-pos="NC" data-lemma="plaie">plaie</span> <span class="xml-tag n-word" title="verbe conjugué / satiner" data-word="satine" data-pos="V" data-lemma="satiner">satine</span> <span class="xml-tag n-word" title="adverbe / qu'" data-word="qu'" data-pos="ADV" data-lemma="qu'">qu'</span><span class="xml-tag n-word" title="clitique sujet / il" data-word="il" data-pos="CLS"...
CSS
.concordance-context.dense .n-head:after,
.concordance-context.dense .n-l:after,
.concordance-context.dense .n-lb:after,
.concordance-context.dense .n-p:after
{
content: "\000020";
}
JavaScript
document.querySelectorAll(".concordance-context.dense .n-head,.concordance-context.dense .n-l,.concordance-context.dense .n-lb,.concordance-context.dense .n-p").forEach(function(i) {i.append(" ");});