带Symfony2的鸭梨
我必须在不使用Symfony模板的情况下制作表单,但当我提交表单时,应答器会切换到:带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
“<
等
下面是源代码的示例:
<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&q=Histoire+de+France" target="_blank">http://scholar.google.com/scholar?hl=fr&q=Histoire+de+France</a></br></br>
</br><div class="float_checkbox"><input class="result_scrap" type="checkbox" name="choix[]" value="<a href='' class='result_title' target='_blank'>[CITATION] [C] Histoire de France</a></span></br><span class='result_author'> J Michelet - 1879 - C. Marpon et E. Flammarion</span>" /><span></span></div><label for="choix"><a href="" class="result_title" target="_blank">[CITATION] [C] Histoire de France</a></span></br><span class="result_author"> J Michelet - 1879 - C. Marpon et E. Flammarion</span></label>
</br><div class="float_checkbox"><input class="result_scrap" type="checkbox" name="choix[]" value="<a href='http://www.mediterranee-antique.fr/Fichiers_PdF/JKL/Lavisse/HF_T72.pdf' class='result_title' target='_blank'>[LIVRE] [B] Histoire de France</a></span></br><span class='result_author'> E Lavisse, A Green, REG Vaillant - 1923 - mediterranee-antique.fr</span>" /><span></span></div><label for="choix"><a href="http://www.mediterranee-antique.fr/Fichiers_PdF/JKL/Lavisse/HF_T72.pdf" class="result_title" target="_blank">[LIVRE] [B] Histoire de France</a></span></br><span class="result_author"> E Lavisse, A Green, REG Vaillant - 1923 - mediterranee-antique.fr</span></label>
</br><div class="float_checkbox"><input class="result_scrap" type="checkbox" name="choix[]" value="<a href='http://books.google.com/books?hl=fr&amp;lr=&amp;id=4gP0S1FTxDcC&amp;oi=fnd&amp;pg=PT656&amp;dq=Histoire+de+France&amp;ots=f87ZSlo-Uz&amp;sig=_o2oTsGrGSqr_efEiCOJkxx_YTk' class='result_title' target='_blank'>[LIVRE] [B] Histoire de France</a></span></br><span class='result_author'> J Bainville - 2012 - books.google.com</span>" /><span></span></div><label for="choix"><a href="http://books.google.com/books?hl=fr&amp;lr=&amp;id=4gP0S1FTxDcC&amp;oi=fnd&amp;pg=PT656&amp;dq=Histoire+de+France&amp;ots=f87ZSlo-Uz&amp;sig=_o2oTsGrGSqr_efEiCOJkxx_YTk" class="result_title" target="_blank">[LIVRE] [B] Histoire de France</a></span></br><span class="result_author"> J Bainville - 2012 - books.google.com</span></label>
</br><div class="float_checkbox"><input class="result_scrap" type="checkbox" name="choix[]" value="<a href='http://books.google.com/books?hl=fr&amp;lr=&amp;id=9uAvAAAAMAAJ&amp;oi=fnd&amp;pg=PA163&amp;dq=Histoire+de+France&amp;ots=YVcqWEIHtY&amp;sig=5-fzmMxuUR1vw9eymtNpcpNvgSA' class='result_title' target='_blank'>[LIVRE] [B] Histoire de France</a></span></br><span class='result_author'> H Martin - 1860 - books.google.com</span>" /><span></span></div><label for="choix"><a href="http://books.google.com/books?hl=fr&amp;lr=&amp;id=9uAvAAAAMAAJ&amp;oi=fnd&amp;pg=PA163&amp;dq=Histoire+de+France&amp;ots=YVcqWEIHtY&amp;sig=5-fzmMxuUR1vw9eymtNpcpNvgSA" class="result_title" target="_blank">[LIVRE] [B] Histoire de France</a></span></br><span class="result_author"> H Martin - 1860 - books.google.com</span></label>
谷歌学者研究院
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&;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&;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&;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&;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 #}
添加你的小枝模板代码!