Skip to content

Commit 6b8db02

Browse files
committed
strip control codes
1 parent c619f3c commit 6b8db02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/textual/content.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ def from_markup(cls, markup: str | Content, **variables: object) -> Content:
193193
if variables:
194194
raise ValueError("A literal string is require to substitute variables.")
195195
return markup
196+
markup = _strip_control_codes(markup)
196197
from textual.markup import to_content
197198

198199
content = to_content(markup, template_variables=variables or None)

0 commit comments

Comments
 (0)