diff --git a/src/experimental/parser/user.nim b/src/experimental/parser/user.nim
index bf8c5ba..715c9a9 100644
--- a/src/experimental/parser/user.nim
+++ b/src/experimental/parser/user.nim
@@ -8,7 +8,7 @@ let
unRegex = re.re"(^|[^A-z0-9-_./?])@([A-z0-9_]{1,15})"
unReplace = "$1@$2"
- htRegex = nre.re"(*U)(^|[^\w-_./?])([##$])([\w_]+)"
+ htRegex = nre.re"""(*U)(^|[^\w-_.?])([##$])([\w_]*+)(?!|">|#)"""
htReplace = "$1$2$3"
proc expandUserEntities(user: var User; raw: RawUser) =