---
title: "Problem mit htmlSpecialChars"
url: "https://www.typo3.net/d/104350-problem-mit-htmlspecialchars"
source: "typo3.net"
tags: ["TYPO3","TypoScript","Frage"]
created: "2011-03-10"
last_reply: "2011-03-10"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# Problem mit htmlSpecialChars

TYPO3 › TypoScript · 1 Antwort · gestartet 2011-03-10

## Eröffnungsbeitrag

**nishna** · 2011-03-10 · [Beitrag #1](https://www.typo3.net/d/104350-problem-mit-htmlspecialchars/1)

Hallo!

Ich habe folgendes Script gebastelt, um mittels inline styles (für Newsletter) dem p tag unterschiedliche styles zuweisen zu können, abhängig von der Spalte:

```typoscript
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.P.style = font-family:Arial, Helvetica, sans-serif;margin:0;padding-bottom:6px;line-height:18px;text-align:left;font-size: 12px;color: #4D4D4D;



parseFunc_RIGHT < lib.parseFunc_RTE

parseFunc_RIGHT.nonTypoTagStdWrap.encapsLines.addAttributes.P.style = font-family:Arial, Helvetica, sans-serif;margin:0;padding-bottom:6px;line-height:16px;text-align:left;font-size: 11px;color: #4D4D4D;padding:10px;

tt_content.specialtext < tt_content.text.20
tt_content.text.20 >

tt_content.text.20 = CASE
tt_content.text.20 {

	key.field=colPos
	default < tt_content.specialtext
	2 < tt_content.specialtext  
	2.parseFunc < parseFunc_RIGHT
	

}
```

Das ganz funktioniert wunderbar, nur werden Sonderzeichen nicht mehr richtig dargestellt, d.h. aus " wird beim Speichern im RTE sofort ".
Ich hab schon an diversen Stellen probiert htmlSpecialChars = 2 einzufügen, hat aber keine Auswirkung.

Weiss jemand, wo das Problem liegen könnte?

Danke schonmal!

Natascha

## Antworten

### [#2](https://www.typo3.net/d/104350-problem-mit-htmlspecialchars/2) · nishna · 2011-03-10

Hat sich schon wieder erledigt. Das Problem lag ganz wo anders. Hatte das PageTSConfig von der eigentlichen Seite komplett auf das Newsletter Template kopiert und da lag das Problem drin.

---

Quelle: „Problem mit htmlSpecialChars“, typo3.net, https://www.typo3.net/d/104350-problem-mit-htmlspecialchars
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
