- {%- for requirement_field_triple_ in requirement.enumerate_all_fields_escaped() -%}
+ {%- for requirement_field_triple_ in requirement.enumerate_all_fields() -%}
{%- set is_multiline = requirement_field_triple_[0].is_multiline() -%}
{% if requirement_change is not none -%}
diff --git a/strictdoc/export/html/templates/screens/source_file_view/main.jinja b/strictdoc/export/html/templates/screens/source_file_view/main.jinja
index 1e627a751..10f4a0994 100644
--- a/strictdoc/export/html/templates/screens/source_file_view/main.jinja
+++ b/strictdoc/export/html/templates/screens/source_file_view/main.jinja
@@ -21,7 +21,7 @@
{%- endfor -%}{{ replacement_after }}
{%- elif line != "" -%}
{# #}
-
{{ line }}
+
{{ line|safe }}
{%- else -%}
{%- endif -%}
diff --git a/strictdoc/server/routers/main_router.py b/strictdoc/server/routers/main_router.py
index 54c72f8bb..6d9a42aa2 100644
--- a/strictdoc/server/routers/main_router.py
+++ b/strictdoc/server/routers/main_router.py
@@ -1,6 +1,5 @@
# mypy: disable-error-code="arg-type,attr-defined,no-any-return,no-redef,no-untyped-call,no-untyped-def,union-attr"
import copy
-import html
import os
import re
from mimetypes import guess_type
@@ -1074,8 +1073,7 @@ def reset_uid(reference_mid: str):
field_mid=MID.create(),
field_name="UID",
field_type=RequirementFormFieldType.SINGLELINE,
- field_unescaped_value=next_uid,
- field_escaped_value=next_uid,
+ field_value=next_uid,
)
template = env().get_template(
"components/form/row/row_uid_with_reset/stream.jinja"
@@ -1814,8 +1812,7 @@ def document__add_comment(
field_mid=MID.create(),
field_name="COMMENT",
field_type=RequirementFormFieldType.MULTILINE,
- field_unescaped_value="",
- field_escaped_value="",
+ field_value="",
),
)
return HTMLResponse(
@@ -2722,14 +2719,12 @@ def get_search(q: Optional[str] = None):
except (AttributeError, NameError, TypeError) as attribute_error_:
error = attribute_error_.args[0]
- search_value = html.escape(q) if q is not None else ""
-
view_object = SearchScreenViewObject(
traceability_index=export_action.traceability_index,
project_config=project_config,
templates=html_templates,
search_results=search_results,
- search_value=search_value,
+ search_value=q if q is not None else "",
error=error,
)
output = view_object.render_screen(html_templates.jinja_environment())
diff --git a/tests/end2end/project_index/import_document_from_reqif/UC55_G1_validations/UC55_G1_T01_not_a_reqif_format/test_UC55_G1_T01_not_a_reqif_file.py b/tests/end2end/project_index/import_document_from_reqif/UC55_G1_validations/UC55_G1_T01_not_a_reqif_format/test_UC55_G1_T01_not_a_reqif_file.py
index a3961f8c4..3b001901b 100644
--- a/tests/end2end/project_index/import_document_from_reqif/UC55_G1_validations/UC55_G1_T01_not_a_reqif_format/test_UC55_G1_T01_not_a_reqif_file.py
+++ b/tests/end2end/project_index/import_document_from_reqif/UC55_G1_validations/UC55_G1_T01_not_a_reqif_format/test_UC55_G1_T01_not_a_reqif_file.py
@@ -33,5 +33,5 @@ def test(self):
form_import.do_form_submit_and_catch_error(
"Cannot parse ReqIF file: "
- "Start tag expected, '<' not found, line 1, column 1 (, line 1)"
+ "Start tag expected, '<' not found, line 1, column 1 (
, line 1)"
)
diff --git a/tests/integration/options/options_per_document/MARKUP/02_options_markup_is_text/test.itest b/tests/integration/options/options_per_document/MARKUP/02_options_markup_is_text/test.itest
index ee7253725..d3663fe73 100644
--- a/tests/integration/options/options_per_document/MARKUP/02_options_markup_is_text/test.itest
+++ b/tests/integration/options/options_per_document/MARKUP/02_options_markup_is_text/test.itest
@@ -3,4 +3,4 @@ CHECK: Published: Hello world doc
RUN: %cat %S/Output/html/02_options_markup_is_text/input.html | filecheck %s --dump-input=fail --check-prefix CHECK-HTML
CHECK-HTML: **This text will not be converted to strong tag**
-CHECK-HTML: <a href="url">link</a>
+CHECK-HTML: <a href="url">link</a>
diff --git a/tests/unit/strictdoc/export/html/renderers/test_text_to_html_fragment_writer.py b/tests/unit/strictdoc/export/html/renderers/test_text_to_html_fragment_writer.py
index 4d85db40c..da7196a03 100644
--- a/tests/unit/strictdoc/export/html/renderers/test_text_to_html_fragment_writer.py
+++ b/tests/unit/strictdoc/export/html/renderers/test_text_to_html_fragment_writer.py
@@ -7,7 +7,7 @@ def test_01_escapes_html_tags():
""".strip()
html_output = TextToHtmlWriter.write(text_input)
- assert "<a href="url">link</a>" == html_output
+ assert "<a href="url">link</a>" == html_output
def test_02_replaces_newlines_with_br():