带Symfony2的鸭梨

带Symfony2的鸭梨,symfony,Symfony,我必须在不使用Symfony模板的情况下制作表单,但当我提交表单时,应答器会切换到:“<等 下面是源代码的示例: <form id="form_result" method="post" action="traitement.php"> <h4 class="result_google"><span class="fa fa-chevron-right"></span>Résultats

我必须在不使用Symfony模板的情况下制作表单,但当我提交表单时,应答器会切换到:
“<

下面是源代码的示例:

<form id="form_result" method="post" action="traitement.php">
                            <h4 class="result_google"><span class="fa fa-chevron-right"></span>Résultats de Google Scholar</h3>
    <a class="lien" href="http://scholar.google.com/scholar?hl=fr&amp;q=Histoire+de+France" target="_blank">http://scholar.google.com/scholar?hl=fr&amp;q=Histoire+de+France</a></br></br>
                            </br>&lt;div class=&quot;float_checkbox&quot;&gt;&lt;input class=&quot;result_scrap&quot; type=&quot;checkbox&quot; name=&quot;choix[]&quot; value=&quot;&lt;a href=&#039;&#039; class=&#039;result_title&#039; target=&#039;_blank&#039;&gt;[CITATION] [C]   Histoire de France&lt;/a&gt;&lt;/span&gt;&lt;/br&gt;&lt;span class=&#039;result_author&#039;&gt; J Michelet - 1879 - C. Marpon et E. Flammarion&lt;/span&gt;&quot; /&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;label for=&quot;choix&quot;&gt;&lt;a href=&quot;&quot; class=&quot;result_title&quot; target=&quot;_blank&quot;&gt;[CITATION] [C]   Histoire de France&lt;/a&gt;&lt;/span&gt;&lt;/br&gt;&lt;span class=&quot;result_author&quot;&gt; J Michelet - 1879 - C. Marpon et E. Flammarion&lt;/span&gt;&lt;/label&gt;
                            </br>&lt;div class=&quot;float_checkbox&quot;&gt;&lt;input class=&quot;result_scrap&quot; type=&quot;checkbox&quot; name=&quot;choix[]&quot; value=&quot;&lt;a href=&#039;http://www.mediterranee-antique.fr/Fichiers_PdF/JKL/Lavisse/HF_T72.pdf&#039; class=&#039;result_title&#039; target=&#039;_blank&#039;&gt;[LIVRE] [B]   Histoire de France&lt;/a&gt;&lt;/span&gt;&lt;/br&gt;&lt;span class=&#039;result_author&#039;&gt; E Lavisse, A Green, REG Vaillant - 1923 - mediterranee-antique.fr&lt;/span&gt;&quot; /&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;label for=&quot;choix&quot;&gt;&lt;a href=&quot;http://www.mediterranee-antique.fr/Fichiers_PdF/JKL/Lavisse/HF_T72.pdf&quot; class=&quot;result_title&quot; target=&quot;_blank&quot;&gt;[LIVRE] [B]   Histoire de France&lt;/a&gt;&lt;/span&gt;&lt;/br&gt;&lt;span class=&quot;result_author&quot;&gt; E Lavisse, A Green, REG Vaillant - 1923 - mediterranee-antique.fr&lt;/span&gt;&lt;/label&gt;
                            </br>&lt;div class=&quot;float_checkbox&quot;&gt;&lt;input class=&quot;result_scrap&quot; type=&quot;checkbox&quot; name=&quot;choix[]&quot; value=&quot;&lt;a href=&#039;http://books.google.com/books?hl=fr&amp;amp;lr=&amp;amp;id=4gP0S1FTxDcC&amp;amp;oi=fnd&amp;amp;pg=PT656&amp;amp;dq=Histoire+de+France&amp;amp;ots=f87ZSlo-Uz&amp;amp;sig=_o2oTsGrGSqr_efEiCOJkxx_YTk&#039; class=&#039;result_title&#039; target=&#039;_blank&#039;&gt;[LIVRE] [B]   Histoire de France&lt;/a&gt;&lt;/span&gt;&lt;/br&gt;&lt;span class=&#039;result_author&#039;&gt; J Bainville - 2012 - books.google.com&lt;/span&gt;&quot; /&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;label for=&quot;choix&quot;&gt;&lt;a href=&quot;http://books.google.com/books?hl=fr&amp;amp;lr=&amp;amp;id=4gP0S1FTxDcC&amp;amp;oi=fnd&amp;amp;pg=PT656&amp;amp;dq=Histoire+de+France&amp;amp;ots=f87ZSlo-Uz&amp;amp;sig=_o2oTsGrGSqr_efEiCOJkxx_YTk&quot; class=&quot;result_title&quot; target=&quot;_blank&quot;&gt;[LIVRE] [B]   Histoire de France&lt;/a&gt;&lt;/span&gt;&lt;/br&gt;&lt;span class=&quot;result_author&quot;&gt; J Bainville - 2012 - books.google.com&lt;/span&gt;&lt;/label&gt;
                            </br>&lt;div class=&quot;float_checkbox&quot;&gt;&lt;input class=&quot;result_scrap&quot; type=&quot;checkbox&quot; name=&quot;choix[]&quot; value=&quot;&lt;a href=&#039;http://books.google.com/books?hl=fr&amp;amp;lr=&amp;amp;id=9uAvAAAAMAAJ&amp;amp;oi=fnd&amp;amp;pg=PA163&amp;amp;dq=Histoire+de+France&amp;amp;ots=YVcqWEIHtY&amp;amp;sig=5-fzmMxuUR1vw9eymtNpcpNvgSA&#039; class=&#039;result_title&#039; target=&#039;_blank&#039;&gt;[LIVRE] [B]   Histoire de France&lt;/a&gt;&lt;/span&gt;&lt;/br&gt;&lt;span class=&#039;result_author&#039;&gt; H Martin - 1860 - books.google.com&lt;/span&gt;&quot; /&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;label for=&quot;choix&quot;&gt;&lt;a href=&quot;http://books.google.com/books?hl=fr&amp;amp;lr=&amp;amp;id=9uAvAAAAMAAJ&amp;amp;oi=fnd&amp;amp;pg=PA163&amp;amp;dq=Histoire+de+France&amp;amp;ots=YVcqWEIHtY&amp;amp;sig=5-fzmMxuUR1vw9eymtNpcpNvgSA&quot; class=&quot;result_title&quot; target=&quot;_blank&quot;&gt;[LIVRE] [B]   Histoire de France&lt;/a&gt;&lt;/span&gt;&lt;/br&gt;&lt;span class=&quot;result_author&quot;&gt; H Martin - 1860 - books.google.com&lt;/span&gt;&lt;/label&gt;

谷歌学者研究院



div class=“float\u checkbox”input class=“result\u scrap”type=“checkbox”name=“choix[]”value=“a href='' 类别=';结果(标题)039 ;;目标='_空白和#039;[引文][C]法国历史/a/span/brspan class=';结果作者';J Michelet-1879-C.Marpon et E.Flammarion/span”/span/span/divlabel for=“choix”a href=“”class=“result_title”target=“_blank”[引文][C]法国历史/a/span/brspan class=“result_author”J Michelet-1879-C.Marpon et E.Flammarion/span/label
div class=“float\u checkbox”input class=“result\u scrap”type=“checkbox”name=“choix[]”value=“a href=';http://www.mediterranee-antique.fr/Fichiers_PdF/JKL/Lavisse/HF_T72.pdf' 类别=';结果(标题)039 ;;目标='_空白和#039;[LIVRE][B]法兰西历史/a/span/brspan class=';结果作者';E Lavisse,绿色,注册号Vaillant-1923-mediterranee仿古。fr/span”/span/span/divlabel for=“choix”A href=”http://www.mediterranee-antique.fr/Fichiers_PdF/JKL/Lavisse/HF_T72.pdf“class=“result\u title”target=“\u blank”[LIVRE][B]法国历史/a/span/brspan class=“result\u作者”“E Lavise,绿色,注册号Vaillant-1923-mediterranee-antique.fr/span/label
div class=“float\u checkbox”输入class=“result\u scrap”type=“checkbox”name=“choix[]”值=“a href=';http://books.google.com/books?hl=fr&amp;lr=&;amp;id=4gP0S1FTxDcC&;amp;oi=fnd&;amp;pg=PT656&;amp;dq=历史+德+法;amp;ots=f87ZSlo Uz&;amp;sig=\uO2OTSGRGSQR\uEFEICOJKxx\uYTK和\u359;类别=';结果(标题)039 ;;目标='_空白和#039;[LIVRE][B]法兰西历史/a/span/brspan class=';结果作者';J Bainville-2012-books.google.com/span”/span/span/divlabel for=“choix”a href=”http://books.google.com/books?hl=fr&amp;lr=&;amp;id=4gP0S1FTxDcC&;amp;oi=fnd&;amp;pg=PT656&;amp;dq=历史+德+法;amp;ots=f87ZSlo Uz&;amp;sig=\uO2OTSGRGSQR\uEFEICOJKxx\uYTK“class=”结果标题“目标=”[LIVRE][B]法国历史/a/span/brspan class=”结果作者“J Bainville-2012-books.google.com/span/label
div class=“float\u checkbox”input class=“result\u scrap”type=“checkbox”name=“choix[]”value=“a href=';http://books.google.com/books?hl=fr&amp;lr=&;amp;id=9uavaaamaaj&;amp;oi=fnd&;amp;pg=PA163&;amp;dq=历史+德+法;amp;ots=YVCQWEHTY&;amp;sig=5-fzmMxuUR1vw9eymtNpcpNvgSA';类别=';结果(标题)039 ;;目标='_空白和#039;[LIVRE][B]法兰西历史/a/span/brspan class=';结果作者';H Martin-1860-books.google.com/span”/span/span/divlabel for=“choix”a href=”http://books.google.com/books?hl=fr&amp;lr=&;amp;id=9uavaaamaaj&;amp;oi=fnd&;amp;pg=PA163&;amp;dq=历史+德+法;amp;ots=YVCQWEHTY&;amp;sig=5-fzmMxuUR1vw9eymtNpcpNvgSA“class=”result_title“target=”blank“[LIVRE][B]法国历史/a/span/brspan class=”result_author“H Martin-1860-books.google.com/span/label
以下是我的小枝模板代码:

{% block body %}
<h2>Selectionnez les resultats que vous souhaitez conserver :</h2>
    <section id="section_result" class="row">   
        <div class="col-lg-offset-2 col-lg-8 col-lg-offset-6" id="section_body">
            <h3 id="result_query">Résultats pour votre recherche : {{ research }}</h3>
            <form id="form_result" method="post" action="traitement.php">
            {# SCRAPING GOOGLE SCHOLAR #}
            {% if resultat1 is defined %}
                <h4 class="result_google"><span class="fa fa-chevron-right"></span>Résultats de Google Scholar</h3>
                <a class="lien" href="{{ googleURL }}" target="_blank">{{ googleURL }}</a></br></br>
                {% for result1 in resultat1 %}
                        </br>{{ result1 }}
                {% endfor %}
            {% endif %}
{%block body%}
选择Nez les resultats que vous souhaitez conserver:
研究报告:{{research}
{#刮谷歌学者#}
{%如果定义了resultat1%}
谷歌学者研究院


{result1%中result1的%1}
{{result1}} {%endfor%} {%endif%}
你知道问题出在哪里吗?我怎么解决?
非常感谢

如果您不希望值被转义,请在您的小树枝模板中使用

{{ result1|raw }} {# result1 won't be escaped #}

添加你的小枝模板代码!