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

Ensure strip_html filter uses same regex as Ruby Liquid. Fixes #68 #70

Merged
merged 1 commit into from
May 9, 2018
Merged

Ensure strip_html filter uses same regex as Ruby Liquid. Fixes #68 #70

merged 1 commit into from
May 9, 2018

Conversation

paulrobertlloyd
Copy link
Contributor

See the discussion in #68. I hope my tests are correct; I used " for my attribute test given the advice I found here.

@coveralls
Copy link

coveralls commented May 8, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 2322e1d on paulrobertlloyd:master into f668a5c on harttle:master.

@harttle harttle merged commit 8e9e10f into harttle:master May 9, 2018
@aciccarello
Copy link
Contributor

aciccarello commented Feb 27, 2023

Should this handle tags on different lines?

The regex removes this:

<style type="text/css">.test-one-line {display: none;}</style>

But not this

<style type="text/css">
.test-one-line {display: none;}
</style>

I was able to workaround this issue by using joinLines before strip_html

aciccarello added a commit to aciccarello/ciccarello.me that referenced this pull request Feb 27, 2023
github-actions bot pushed a commit that referenced this pull request Mar 2, 2023
## [10.6.1](v10.6.0...v10.6.1) (2023-03-02)

### Bug Fixes

* [expression] apply value equal for arrays, [#589](#589) ([9c0dc5f](9c0dc5f))
* strip_html for multi line <script>/<style>/comments, [#70](#70) ([42d2590](42d2590))
@harttle
Copy link
Owner

harttle commented Mar 2, 2023

@aciccarello please try v10.6.1

@aciccarello
Copy link
Contributor

I've confirmed this is working as expected. Thanks!

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

Successfully merging this pull request may close these issues.

4 participants