```dataview
LIST replace( replace( item.text,
"#quote", ""),
"#fav", "")
WHERE !contains(file.name, "Template")
FLATTEN file.lists as item
```
Note however that also meddles with tags like #favorite if you happen to use it… Depending on how you write your list items, you could possible add a space in the search pattern.
The query essentially does a replace() on an already replaced string in order to get two replacements. This pattern could be extended further with more lines if you want to replace more stuff.
An alternative is to use regexreplace() where we can also check on word boundaries using \b, and then the query looks like this:
```dataview
LIST newText
FLATTEN file.lists as item
FLATTEN regexreplace(item.text, "#(quote|fav)\b", "") as newText
WHERE !contains(file.name, "Template")
```
Here I’ve also used an extra FLATTEN to illustrate how we can keep the result in another variable, newText. If you prefer, you could do LIST regexreplace(...)