diff --git a/src/Test/Html/Internal/ElmHtml/InternalTypes.elm b/src/Test/Html/Internal/ElmHtml/InternalTypes.elm
index 26fb544a..4e9dee1d 100644
--- a/src/Test/Html/Internal/ElmHtml/InternalTypes.elm
+++ b/src/Test/Html/Internal/ElmHtml/InternalTypes.elm
@@ -237,22 +237,7 @@ contextDecodeElmHtml context =
-}
decodeTextTag : Json.Decode.Decoder TextTagRecord
decodeTextTag =
- field kernelConstants.virtualDom.text
- (Json.Decode.andThen
- (\text ->
- Json.Decode.succeed
- { text =
- {- https://github.com/elm/virtual-dom/blob/5a5bcf48720bc7d53461b3cd42a9f19f119c5503/src/Elm/Kernel/VirtualDom.server.js#L8-L26 -}
- text
- |> String.replace "&" "&"
- |> String.replace "<" "<"
- |> String.replace ">" ">"
- |> String.replace "\"" """
- |> String.replace "'" "'"
- }
- )
- Json.Decode.string
- )
+ field kernelConstants.virtualDom.text (Json.Decode.andThen (\text -> Json.Decode.succeed { text = text }) Json.Decode.string)
{-| decode a tagger
diff --git a/src/Test/Html/Internal/ElmHtml/ToString.elm b/src/Test/Html/Internal/ElmHtml/ToString.elm
index ca4565cc..125a6076 100644
--- a/src/Test/Html/Internal/ElmHtml/ToString.elm
+++ b/src/Test/Html/Internal/ElmHtml/ToString.elm
@@ -151,11 +151,6 @@ nodeRecordToString options { tag, children, facts } =
VoidElements ->
[ openTag [ classes, styles, stringAttributes, boolAttributes ] ]
- {- TODO: implement restrictions for RawTextElements,
- EscapableRawTextElements. Also handle ForeignElements correctly.
- For now just punt and use the previous behavior for all other
- element kinds.
- -}
_ ->
[ openTag [ classes, styles, stringAttributes, boolAttributes ] ]
++ childrenStrings