Skip to content

Commit faedac9

Browse files
committed
disable processing @mentions in <script> tag
1 parent d3fef09 commit faedac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/html/pipeline/@mention_filter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def self.mentioned_logins_in(text, username_pattern=UsernamePattern)
6565
)
6666

6767
# Don't look for mentions in text nodes that are children of these elements
68-
IGNORE_PARENTS = %w(pre code a style).to_set
68+
IGNORE_PARENTS = %w(pre code a style script).to_set
6969

7070
def call
7171
result[:mentioned_usernames] ||= []

0 commit comments

Comments
 (0)