Shopify / Shopify/liquid

Use liquid to filter content between HTML tags

Open
#1,278 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Question
Dominant language
Ruby
Stars
11.9k
Forks
1.5k
Avg merge
17h 55m
Merged PRs (30d)
3

Description

Hi,

Do we have an example that allows filtering the content between certain HTML tags? For instance we have:
<div id="A">display</div>
<div id="B">do not display</div>
<div id="C">do not display</div>

I am trying to find a way to filter this code (an actual article) using liquid so the hidden data (everything in the div with id's B and C) will not be available in the browser.

Regards,

Nika.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name a file, test, or entry point. First clarify whether it requests an existing Liquid example or new HTML-content filtering, and define what must be absent from the browser output; no completion path is specified.

Written by the indexing model from the issue text.

Assessment

Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.