Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Behaving exceptionally in template syntax containing curly braces #3771

Open
gitlilimin opened this issue Apr 11, 2024 · 0 comments
Open

Behaving exceptionally in template syntax containing curly braces #3771

gitlilimin opened this issue Apr 11, 2024 · 0 comments

Comments

@gitlilimin
Copy link

source:

<table border="1">
  <thead>
    <tr>
      <th>th1</th>
      <th>th2</th>
    </tr>
  </thead>
  <tbody>
    {volist name="saixiang_list" id="item"}
    <tr>
      <td>{if $item.is_checked}√{/if}</td>
      {$item.table_html|raw}
    </tr>
    {/volist}
  </tbody>
</table>

useage:

const $ = cheerio.load(htmlContent)
console.log($.html())

output:

{volist name="saixiang_list" id="item"}
	
		{$item.table_html|raw}
	
	{/volist}
<table border="1">
<thead>
	<tr>
		<th>th1</th>
                <th>th2</th>
	</tr>
</thead>
<tbody><tr>
		<td>{if $item.is_checked}√{/if}</td></tr></tbody>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant