Rimuovi tag HTML

Estrae testo con paragrafi ed entità, senza script e stili, oppure elimina solo i tag. Non è un filtro di sicurezza HTML.

Input: TestoRisultato: Testo

Inserimento di testo

Esempi

Annuncio con tag in linea

Input

<p>Deploy <strong>v2.4</strong> to <em>staging</em>.</p>

Expected answer

Deploy v2.4 to staging.
Estrazione testo
Readable text
Conservare i paragrafi

Input

<p>Backup complete.</p><p>Deploy ready.</p>

Expected answer

Backup complete.

Deploy ready.
Estrazione testo
Readable text
Decodificare le entità una volta

Input

<p>Fish &amp; chips: &euro;5. &#x1F41F; &lt;b&gt; &amp;lt;</p>

Expected answer

Fish & chips: €5. 🐟 <b> &lt;
Estrazione testo
Readable text
Escludere script e stili

Input

<style>p{color:red}</style><p>Before</p><script>demo()</script><p>After</p>

Expected answer

Before

After
Estrazione testo
Readable text
Conservare l’indentazione

Input

<p>Example:</p><pre>if ready:
    deploy()
    notify()</pre>

Expected answer

Example:

if ready:
    deploy()
    notify()
Estrazione testo
Readable text

Strumenti correlati

Riordino del codice

Riferimento dell’operazione

Vedi la documentazione tecnica originale (English)