Skip to content

Commit

Permalink
$mol_html_decode: fixed amp
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Jan 2, 2025
1 parent fd877db commit 118420f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/decode/decode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace $ {
export function $mol_html_decode( text : string ) {

return text
.replace( /&(?:#(\d+)|(lt|gt|quot));/gi , ( str , numb , name )=> {
.replace( /&(?:#(\d+)|(lt|gt|quot|amp));/gi , ( str , numb , name )=> {
if( numb ) return String.fromCharCode( numb )

const mapping = {
Expand Down

0 comments on commit 118420f

Please sign in to comment.