You could use something like this
"[2021-01-18 06:18:57.000000]".replace(/[|]/g, '')
Matches the character "[" and "]", replaces them with nothing.
1.4m articles
1.4m replys
5 comments
57.0k users