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

Don't need escape in rich text field #174

Open
mantaroh opened this issue Aug 3, 2023 · 0 comments
Open

Don't need escape in rich text field #174

mantaroh opened this issue Aug 3, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@mantaroh
Copy link
Collaborator

mantaroh commented Aug 3, 2023

Describe the bug

If we have the following rich text field, Spear generate the linebreak character as \\r\\n.

<code>
  <ul>
   <li cms-loop cms-content-type="demo">
     <h1>{%= demo_[フィールドID1] %}</h1>
      <p>{%= demo_[フィールドID2] %}</p>
    <li>
  <ul>
</code>

Spear generate the following code;

<code>&lt;ul&gt;\\r\\n  &lt;li cms-loop cms-content-type=\"demo\"&gt;\\r\\n    &lt;h1&gt;{%= demo_[フィールドID1] %}&lt;/h1&gt;\\r\\n    &lt;p&gt;{%= demo_[フィールドID2] %}&lt;/p&gt;\\r\\n    &lt;img data-src=\"{%= v3demo-site-logo_[フィールドID3] %}\"&gt;\\r\\n  &lt;/li&gt;\\r\\n&lt;/ul&gt;\\r\\n</code>

The generated code use escaped line break (\r\n). So this HTML show the \r\n character.

To Reproduce
N/A

Expected behavior

A line break doesn't escaped.

@mantaroh mantaroh added the bug Something isn't working label Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant