Update excerpt helper to properly filter HTML footnotes
Update excerpt helper to properly filter HTML footnotes

closes #4741
- updated regexp to properly filter out footnotes without removing too much text
- happened only when a link was used before a footnote
- old regexp was too 'greedy' and removed regular link together with the footnote
- new regexp uses a more specific <a> tag

etanxing/Ghost,Yarov/yarov,STANAPO/Ghost,qdk0901/Ghost,bosung90/Ghost,chevex/undoctrinate,Kaenn/Ghost,stridespace/Ghost,dYale/blog,panezhang/Ghost,ASwitlyk/Ghost,Netazoic/bad-gateway,leninhasda/Ghost,fredeerock/atlabghost,delgermurun/Ghost,letsjustfixit/Ghost,bbmepic/Ghost,johnnymitch/Ghost,xiongjungit/Ghost,ryanbrunner/crafters,lf2941270/Ghost,vishnuharidas/Ghost,smaty1/Ghost,sergeylukin/Ghost,cncodog/Ghost-zh-codog,jorgegilmoreira/ghost,stridespace/Ghost,lukw00/Ghost,delgermurun/Ghost,neynah/GhostSS,ygbhf/Ghost,achimos/ghost_as,lukekhamilton/Ghost,ITJesse/Ghost-zh,Alxandr/Blog,Smile42RU/Ghost,lanffy/Ghost,telco2011/Ghost,Brunation11/Ghost,JohnONolan/Ghost,schneidmaster/theventriloquist.us,dylanchernick/ghostblog,weareleka/blog,codeincarnate/Ghost,ErisDS/Ghost,JonathanZWhite/Ghost,mtvillwock/Ghost,rouanw/Ghost,neynah/GhostSS,ASwitlyk/Ghost,jiangjian-zh/Ghost,netputer/Ghost,olsio/Ghost,arvidsvensson/Ghost,johnnymitch/Ghost,hilerchyn/Ghost,cicorias/Ghost,mohanambati/Ghost,mhhf/ghost-latex,madole/diverse-learners,julianromera/Ghost,dbalders/Ghost,ignasbernotas/nullifer,smaty1/Ghost,lowkeyfred/Ghost,icowan/Ghost,cwonrails/Ghost,rito/Ghost,smedrano/Ghost,rizkyario/Ghost,jparyani/GhostSS,riyadhalnur/Ghost,acburdine/Ghost,pensierinmusica/Ghost,carlyledavis/Ghost,leninhasda/Ghost,tanbo800/Ghost,Brunation11/Ghost,morficus/Ghost,ljhsai/Ghost,cqricky/Ghost,vloom/blog,situkangsayur/Ghost,schematical/Ghost,daimaqiao/Ghost-Bridge,andrewconnell/Ghost,yangli1990/Ghost,nmukh/Ghost,PeterCxy/Ghost,zackslash/Ghost,JohnONolan/Ghost,PaulBGD/Ghost-Plus,PDXIII/Ghost-FormMailer,bastianbin/Ghost,tchapi/igneet-blog,v3rt1go/Ghost,patterncoder/patterncoder,jgillich/Ghost,ryansukale/ux.ryansukale.com,camilodelvasto/localghost,PepijnSenders/whatsontheotherside,francisco-filho/Ghost,e10/Ghost,anijap/PhotoGhost,karmakaze/Ghost,bitjson/Ghost,UnbounDev/Ghost,ballPointPenguin/Ghost,ivanoats/ivanstorck.com,bitjson/Ghost,FredericBernardo/Ghost,greenboxindonesia/Ghost,no1lov3sme/Ghost,jeonghwan-kim/Ghost,benstoltz/Ghost,ddeveloperr/Ghost,edsadr/Ghost,kortemy/Ghost,kortemy/Ghost,e10/Ghost,virtuallyearthed/Ghost,Trendy/Ghost,psychobunny/Ghost,pollbox/ghostblog,duyetdev/islab,yanntech/Ghost,Yarov/yarov,bsansouci/Ghost,k2byew/Ghost,ManRueda/manrueda-blog,ghostchina/Ghost-zh,petersucks/blog,javimolla/Ghost,JonSmith/Ghost,telco2011/Ghost,VillainyStudios/Ghost,makapen/Ghost,LeandroNascimento/Ghost,rito/Ghost,neynah/GhostSS,syaiful6/Ghost,camilodelvasto/localghost,smedrano/Ghost,vainglori0us/urban-fortnight,jacostag/Ghost,developer-prosenjit/Ghost,SachaG/bjjbot-blog,Feitianyuan/Ghost,kaychaks/kaushikc.org,dqj/Ghost,cysys/ghost-openshift,alecho/Ghost,jin/Ghost,edurangel/Ghost,zumobi/Ghost,tmp-reg/Ghost,achimos/ghost_as,sunh3/Ghost,AlexKVal/Ghost,omaracrystal/Ghost,melissaroman/ghost-blog,RufusMbugua/TheoryOfACoder,bastianbin/Ghost,janvt/Ghost,notno/Ghost,beautyOfProgram/Ghost,optikalefx/Ghost,IbrahimAmin/Ghost,adam-paterson/blog,axross/ghost,Sebastian1011/Ghost,ivantedja/ghost,GarrethDottin/Habits-Design,cncodog/Ghost-zh-codog,singular78/Ghost,load11/ghost,zumobi/Ghost,schematical/Ghost,UsmanJ/Ghost,thinq4yourself/Unmistakable-Blog,SachaG/bjjbot-blog,manishchhabra/Ghost,VillainyStudios/Ghost,hyokosdeveloper/Ghost,Romdeau/Ghost,woodyrew/Ghost,lethalbrains/Ghost,mtvillwock/Ghost,JonSmith/Ghost,epicmiller/pages,memezilla/Ghost,davidenq/Ghost-Blog,mlabieniec/ghost-env,dgem/Ghost,dbalders/Ghost,carlosmtx/Ghost,weareleka/blog,flomotlik/Ghost,edsadr/Ghost,kevinansfield/Ghost,ManRueda/Ghost,prosenjit-itobuz/Ghost,Loyalsoldier/Ghost,jorgegilmoreira/ghost,PeterCxy/Ghost,flpms/ghost-ad,tksander/Ghost,francisco-filho/Ghost,pathayes/FoodBlog,Japh/shortcoffee,v3rt1go/Ghost,virtuallyearthed/Ghost,AnthonyCorrado/Ghost,rafaelstz/Ghost,pollbox/ghostblog,aroneiermann/GhostJade,RufusMbugua/TheoryOfACoder,ManRueda/Ghost,Xibao-Lv/Ghost,davidmenger/nodejsfan,BayPhillips/Ghost,vainglori0us/urban-fortnight,ashishapy/ghostpy,psychobunny/Ghost,flomotlik/Ghost,olsio/Ghost,cysys/ghost-openshift,sceltoas/Ghost,etdev/blog,Remchi/Ghost,yanntech/Ghost,bisoe/Ghost,jamesslock/Ghost,tidyui/Ghost,hilerchyn/Ghost,carlyledavis/Ghost,kwangkim/Ghost,greyhwndz/Ghost,dylanchernick/ghostblog,KnowLoading/Ghost,qdk0901/Ghost,Trendy/Ghost,sfpgmr/Ghost,kaychaks/kaushikc.org,jaguerra/Ghost,Elektro1776/javaPress,dqj/Ghost,shrimpy/Ghost,dai-shi/Ghost,dggr/Ghost-sr,NamedGod/Ghost,skleung/blog,darvelo/Ghost,ananthhh/Ghost,ThorstenHans/Ghost,zackslash/Ghost,ygbhf/Ghost,llv22/Ghost,velimir0xff/Ghost,rameshponnada/Ghost,praveenscience/Ghost,alecho/Ghost,MadeOnMars/Ghost,thehogfather/Ghost,rchrd2/Ghost,situkangsayur/Ghost,wallmarkets/Ghost,jiachenning/Ghost,trunk-studio/Ghost,r1N0Xmk2/Ghost,leonli/ghost,optikalefx/Ghost,AnthonyCorrado/Ghost,imjerrybao/Ghost,augbog/Ghost,bsansouci/Ghost,jeonghwan-kim/Ghost,mlabieniec/ghost-env,rmoorman/Ghost,ManRueda/manrueda-blog,jamesslock/Ghost,jiachenning/Ghost,imjerrybao/Ghost,kolorahl/Ghost,lethalbrains/Ghost,panezhang/Ghost,Klaudit/Ghost,BlueHatbRit/Ghost,janvt/Ghost,disordinary/Ghost,Rovak/Ghost,zhiyishou/Ghost,cicorias/Ghost,vloom/blog,manishchhabra/Ghost,davidmenger/nodejsfan,GarrethDottin/Habits-Design,UnbounDev/Ghost,sceltoas/Ghost,hoxoa/Ghost,bosung90/Ghost,djensen47/Ghost,julianromera/Ghost,davidenq/Ghost-Blog,claudiordgz/Ghost,llv22/Ghost,TryGhost/Ghost,DesenTao/Ghost,fredeerock/atlabghost,ballPointPenguin/Ghost,jin/Ghost,Kikobeats/Ghost,johngeorgewright/blog.j-g-w.info,tidyui/Ghost,memezilla/Ghost,javimolla/Ghost,ManRueda/Ghost,woodyrew/Ghost,Gargol/Ghost,nmukh/Ghost,claudiordgz/Ghost,SkynetInc/steam,etanxing/Ghost,novaugust/Ghost,cwonrails/Ghost,sifatsultan/js-ghost,djensen47/Ghost,Bunk/Ghost,devleague/uber-hackathon,BayPhillips/Ghost,ashishapy/ghostpy,MadeOnMars/Ghost,patterncoder/patterncoder,schneidmaster/theventriloquist.us,exsodus3249/Ghost,anijap/PhotoGhost,allanjsx/Ghost,riyadhalnur/Ghost,laispace/laiblog,thehogfather/Ghost,acburdine/Ghost,davidenq/Ghost-Blog,patrickdbakke/ghost-spa,codeincarnate/Ghost,jomahoney/Ghost,gcamana/Ghost,pensierinmusica/Ghost,tksander/Ghost,DesenTao/Ghost,rmoorman/Ghost,diogogmt/Ghost,shannonshsu/Ghost,tanbo800/Ghost,wspandihai/Ghost,yundt/seisenpenji,ryanbrunner/crafters,nneko/Ghost,GroupxDev/javaPress,edurangel/Ghost,Xibao-Lv/Ghost,leonli/ghost,BlueHatbRit/Ghost,Netazoic/bad-gateway,NamedGod/Ghost,IbrahimAmin/Ghost,sangcu/Ghost,Elektro1776/javaPress,Kikobeats/Ghost,nneko/Ghost,r14r/fork_nodejs_ghost,icowan/Ghost,skleung/blog,novaugust/Ghost,denzelwamburu/denzel.xyz,mattchupp/blog,mhhf/ghost-latex,etdev/blog,klinker-apps/ghost,cwonrails/Ghost,phillipalexander/Ghost,hnq90/Ghost,metadevfoundation/Ghost,chris-yoon90/Ghost,devleague/uber-hackathon,augbog/Ghost,karmakaze/Ghost,Jai-Chaudhary/Ghost,katrotz/blog.katrotz.space,leonli/ghost,aroneiermann/GhostJade,Klaudit/Ghost,rouanw/Ghost,jaguerra/Ghost,lf2941270/Ghost,syaiful6/Ghost,sajmoon/Ghost,kwangkim/Ghost,daihuaye/Ghost,dYale/blog,darvelo/Ghost,sergeylukin/Ghost,laispace/laiblog,TryGhost/Ghost,hoxoa/Ghost,ivanoats/ivanstorck.com,bisoe/Ghost,zhiyishou/Ghost,ladislas/ghost,Netazoic/bad-gateway,Kaenn/Ghost,KnowLoading/Ghost,ljhsai/Ghost,influitive/crafters,diancloud/Ghost,sebgie/Ghost,NovaDevelopGroup/Academy,mdbw/ghost,acburdine/Ghost,thomasalrin/Ghost,TryGhost/Ghost,klinker-apps/ghost,thinq4yourself/Unmistakable-Blog,liftup/ghost,handcode7/Ghost,diogogmt/Ghost,mohanambati/Ghost,PepijnSenders/whatsontheotherside,hnarayanan/narayanan.co,JonathanZWhite/Ghost,ryansukale/ux.ryansukale.com,UsmanJ/Ghost,dbalders/Ghost,akveo/akveo-blog,Japh/Ghost,letsjustfixit/Ghost,rizkyario/Ghost,rafaelstz/Ghost,singular78/Ghost,greyhwndz/Ghost,tadityar/Ghost,jomofrodo/ccb-ghost,ngosinafrica/SiteForNGOs,kevinansfield/Ghost,mdbw/ghost,petersucks/blog,Elektro1776/javaPress,gabfssilva/Ghost,sajmoon/Ghost,rchrd2/Ghost,praveenscience/Ghost,bbmepic/Ghost,ckousik/Ghost,disordinary/Ghost,mayconxhh/Ghost,ladislas/ghost,blankmaker/Ghost,mattchupp/blog,velimir0xff/Ghost,mlabieniec/ghost-env,ckousik/Ghost,shrimpy/Ghost,devleague/uber-hackathon,obsoleted/Ghost,mnitchie/Ghost,singular78/Ghost,Smile42RU/Ghost,AlexKVal/Ghost,netputer/Ghost,wallmarkets/Ghost,camilodelvasto/herokughost,Shauky/Ghost,jomofrodo/ccb-ghost,carlosmtx/Ghost,sangcu/Ghost,wangjun/Ghost,lukaszklis/Ghost,dymx101/Ghost,sebgie/Ghost,phillipalexander/Ghost,NikolaiIvanov/Ghost,daihuaye/Ghost,tyrikio/Ghost,aschmoe/jesse-ghost-app,dgem/Ghost,tmp-reg/Ghost,wspandihai/Ghost,dggr/Ghost-sr,Gargol/Ghost,kevinansfield/Ghost,PDXIII/Ghost-FormMailer,dymx101/Ghost,hnarayanan/narayanan.co,rollokb/Ghost,katrotz/blog.katrotz.space,Netazoic/bad-gateway,javorszky/Ghost,uniqname/everydaydelicious,GroupxDev/javaPress,Azzurrio/Ghost,atandon/Ghost,pbevin/Ghost,ErisDS/Ghost,JulienBrks/Ghost,developer-prosenjit/Ghost,jorgegilmoreira/ghost,Coding-House/Ghost,lowkeyfred/Ghost,notno/Ghost,beautyOfProgram/Ghost,hnq90/Ghost,vainglori0us/urban-fortnight,andrewconnell/Ghost,zeropaper/Ghost,ineitzke/Ghost,jomofrodo/ccb-ghost,mayconxhh/Ghost,rizkyario/Ghost,zeropaper/Ghost,skmezanul/Ghost,sfpgmr/Ghost,stridespace/Ghost,ddeveloperr/Ghost,no1lov3sme/Ghost,YY030913/Ghost,dai-shi/Ghost,tadityar/Ghost,Romdeau/Ghost,Remchi/Ghost,STANAPO/Ghost,ClarkGH/Ghost,Alxandr/Blog,skmezanul/Ghost,adam-paterson/blog,yangli1990/Ghost,tyrikio/Ghost,diancloud/Ghost,epicmiller/pages,prosenjit-itobuz/Ghost,lukekhamilton/Ghost,k2byew/Ghost,uploadcare/uploadcare-ghost-demo,uploadcare/uploadcare-ghost-demo,tuan/Ghost,pedroha/Ghost,JohnONolan/Ghost,Bunk/Ghost,sunh3/Ghost,wemakeweb/Ghost,benstoltz/Ghost,tandrewnichols/ghost,tandrewnichols/ghost,TribeMedia/Ghost,influitive/crafters,mnitchie/Ghost,barbastan/Ghost,Rovak/Ghost,Coding-House/Ghost,theonlypat/Ghost,axross/ghost,rollokb/Ghost,flpms/ghost-ad,lukw00/Ghost,Alxandr/Blog,jaswilli/Ghost,Japh/shortcoffee,ignasbernotas/nullifer,chris-yoon90/Ghost,theonlypat/Ghost,gleneivey/Ghost,JulienBrks/Ghost,jacostag/Ghost,pedroha/Ghost,cysys/ghost-openshift,laispace/laiblog,ThorstenHans/Ghost,jaswilli/Ghost,yundt/seisenpenji,daimaqiao/Ghost-Bridge,Dnlyc/Ghost,r14r/fork_nodejs_ghost,NikolaiIvanov/Ghost,dggr/Ghost-sr,gleneivey/Ghost,wemakeweb/Ghost,jgillich/Ghost,xiongjungit/Ghost,sebgie/Ghost,GroupxDev/javaPress,letsjustfixit/Ghost,aschmoe/jesse-ghost-app,pathayes/FoodBlog,hyokosdeveloper/Ghost,akveo/akveo-blog,rameshponnada/Ghost,gcamana/Ghost,jparyani/GhostSS,jomahoney/Ghost,jiangjian-zh/Ghost,veyo-care/Ghost,ClarkGH/Ghost,kolorahl/Ghost,Dnlyc/Ghost,gabfssilva/Ghost,obsoleted/Ghost,Kikobeats/Ghost,FredericBernardo/Ghost,johngeorgewright/blog.j-g-w.info,ineitzke/Ghost,cncodog/Ghost-zh-codog,Jai-Chaudhary/Ghost,novaugust/Ghost,ngosinafrica/SiteForNGOs,veyo-care/Ghost,Sebastian1011/Ghost,arvidsvensson/Ghost,allanjsx/Ghost,barbastan/Ghost,lukaszklis/Ghost,duyetdev/islab,YY030913/Ghost,LeandroNascimento/Ghost,Feitianyuan/Ghost,Loyalsoldier/Ghost,NovaDevelopGroup/Academy,camilodelvasto/herokughost,blankmaker/Ghost,Japh/Ghost,NovaDevelopGroup/Academy,SkynetInc/steam,pbevin/Ghost,Kaenn/Ghost,ghostchina/Ghost-zh,liftup/ghost,telco2011/Ghost,greenboxindonesia/Ghost,daimaqiao/Ghost-Bridge,thomasalrin/Ghost,trepafi/ghost-base,PaulBGD/Ghost-Plus,kortemy/Ghost,load11/ghost,jparyani/GhostSS,metadevfoundation/Ghost,r1N0Xmk2/Ghost,javorszky/Ghost,mohanambati/Ghost,ErisDS/Ghost,ManRueda/manrueda-blog,sifatsultan/js-ghost,handcode7/Ghost,Azzurrio/Ghost,makapen/Ghost,lanffy/Ghost,TribeMedia/Ghost,denzelwamburu/denzel.xyz,exsodus3249/Ghost,trunk-studio/Ghost,atandon/Ghost,ananthhh/Ghost,cqricky/Ghost,wangjun/Ghost,allanjsx/Ghost,shannonshsu/Ghost,melissaroman/ghost-blog,ITJesse/Ghost-zh,morficus/Ghost,omaracrystal/Ghost,madole/diverse-learners