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

HTML & Markdown Preview text in Replicators #1802

Closed
jcohlmeyer opened this Issue Feb 23, 2018 · 5 comments

Comments

Projects
None yet
3 participants
@jcohlmeyer

jcohlmeyer commented Feb 23, 2018

Expected behaviour

To see one line of text in a collapsed replicator item that has a markdown field where the markdown field contains html.

Actual behaviour

The html gets rendered and the collapsed replicator field is not very collapsed, it is actually quite long.

Steps to reproduce

  1. Put html in a markdown field inside a replicator
  2. Collapse the replicator item

Server Details

Statamic Version: 2.8.7

Screenshot

image

@jasonvarga

This comment has been minimized.

Member

jasonvarga commented Feb 24, 2018

Ah, ruining everyone's fun by adding weird html in your markdown :)

What html is that in the screenshot?

@jcohlmeyer

This comment has been minimized.

jcohlmeyer commented Feb 24, 2018

There is some PayPal form html in there.

@jasonvarga

This comment has been minimized.

Member

jasonvarga commented Feb 28, 2018

Right, but what is it? What is Choose Your Membership Level etc?

@jcohlmeyer

This comment has been minimized.

jcohlmeyer commented Feb 28, 2018

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="paypal"><input name="cmd" type="hidden" value="_s-xclick" /><br />
<input name="hosted_button_id" type="hidden" value="******" /></p>
<table>
<tbody>
<tr>
<td><input name="on0" type="hidden" value="Choose Your Membership Level" />Choose Your Membership Level</td>
</tr>
<tr>
<td><select name="os0"><option value="Sales under $100,000 -">Sales under $100,000 &#8211; $100.00 CAD</option><option value="Sales under $500,000 -">Sales under $500,000 &#8211; $250.00 CAD</option><option value="Sales under $1,000,000 -">Sales under $1,000,000 &#8211; $650.00 CAD</option><option value="Sales under $5,000,000 -">Sales under $5,000,000 &#8211; $1,350.00 CAD</option><option value="Sales under $10,000,000 -">Sales under $10,000,000 &#8211; $2,000.00 CAD</option><option value="Sales over $10,000,000 -">Sales over $10,000,000 &#8211; $3,250.00 CAD</option></select></td>
</tr>
<tr>
<td><input name="on1" type="hidden" value="Business Name" />Business Name</td>
</tr>
<tr>
<td><input maxlength="200" name="os1" type="text" /></td>
</tr>
<tr>
<td><input name="on2" type="hidden" value="Contact Name" />Contact Name</td>
</tr>
<tr>
<td><input maxlength="200" name="os2" type="text" /></td>
</tr>
</tbody>
</table>
<p><input name="currency_code" type="hidden" value="CAD" /><br />
<input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_SM.gif" type="image" /><br />
<img src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" alt="" width="1" height="1" border="0" /></p>
<p>&nbsp;</p>
</form>
@jcohlmeyer

This comment has been minimized.

jcohlmeyer commented May 29, 2018

On another site I have noticed <br />'s cause the title to have line breaks and be really long when the grid item is collapsed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment