Repository: quarkusio/quarkus
Issue: Character escaping in Qute doesn't work

**Describe the bug**
Characters like '&' aren't escaped. 
[qute-test.zip](https://github.com/quarkusio/quarkus/files/5487996/qute-test.zip)


**Expected behavior**
Characters like '&', '"', ... should be escaped to '&amp;', '&quot;' etc.

**Actual behavior**
The html output contains invalid characters like '&' ...


**To Reproduce**

Link to a small reproducer (preferably a Maven project if the issue is not Gradle-specific).

Or attach an archive containing the reproducer to the issue.

Steps to reproduce the behavior:
1. 
2. 
3. 

**Configuration**
```properties
# Add your application.properties here, if applicable.

```

**Screenshots**
(If applicable, add screenshots to help explain your problem.)

**Environment (please complete the following information):**
 - Output of `uname -a` or `ver`: Linux 5.8.16-300.fc33.x86_64 #1 SMP Mon Oct 19 13:18:33 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
 - Output of `java -version`: openjdk 11.0.9 2020-10-20
OpenJDK Runtime Environment 18.9 (build 11.0.9+11)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.9+11, mixed mode, sharing)
 - GraalVM version (if different from Java): ---
 - Quarkus version or git rev: 1.9.1.Final
 - Build tool (ie. output of `mvnw --version` or `gradlew --version`): Maven 3.6.3

**Additional context**
(Add any other context about the problem here.)


Changed files:
extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/EscapingTest.java
independent-projects/qute/core/src/main/java/io/quarkus/qute/Engine.java

diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/EscapingTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/EscapingTest.java
index a5c54c1a4fa..dbd4e830f0a 100644
--- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/EscapingTest.java
+++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/EscapingTest.java
@@ -2,6 +2,8 @@
 
 import static org.junit.jupiter.api.Assertions.assertEquals;
 
+import java.util.Locale;
+
 import javax.inject.Inject;
 
 import org.jboss.shrinkwrap.api.ShrinkWrap;
@@ -14,6 +16,7 @@
 import io.quarkus.qute.RawString;
 import io.quarkus.qute.Template;
 import io.quarkus.qute.TemplateData;
+import io.quarkus.qute.Variant;
 import io.quarkus.test.QuarkusUnitTest;
 
 public class EscapingTest {
@@ -61,6 +64,13 @@ public void testValidation() {
                 engine.getTemplate("validation").data("text", "<div>").render());
     }
 
+    @Test
+    public void testEngineParse() {
+        assertEquals("&lt;div&gt; <div>",
+                engine.parse("{text} {text.raw}",
+                        new Variant(Locale.ENGLISH, "text/html", "UTF-8")).data("text", "<div>").render());
+    }
+
     @TemplateData
     public static class Item {
 
diff --git a/independent-projects/qute/core/src/main/java/io/quarkus/qute/Engine.java b/independent-projects/qute/core/src/main/java/io/quarkus/qute/Engine.java
index b2b8db68b51..e738fa08387 100644
--- a/independent-projects/qute/core/src/main/java/io/quarkus/qute/Engine.java
+++ b/independent-projects/qute/core/src/main/java/io/quarkus/qute/Engine.java
@@ -27,7 +27,7 @@ static EngineBuilder builder() {
      * @return the template
      */
     default Template parse(String content) {
-        return parse(content, null);
+        return parse(content, null, null);
     }
 
     /**
@@ -40,7 +40,7 @@ default Template parse(String content) {
      * @return the template
      */
     default Template parse(String content, Variant variant) {
-        return parse(content, null, null);
+        return parse(content, variant, null);
     }
 
     /**