[{"data":1,"prerenderedAt":972},["ShallowReactive",2],{"docs-nav":3,"\u002Fdocs\u002Ftransformers\u002Fremove-attributes":316},[4,9,15,19,24,28,33,37,41,45,49,53,57,60,63,67,70,74,77,81,85,89,93,97,101,105,109,113,117,121,125,129,133,137,141,145,149,153,156,159,162,165,168,171,175,178,181,184,186,189,192,195,198,201,204,207,210,213,216,219,222,225,228,231,234,237,240,244,247,250,253,257,261,264,267,270,273,276,279,282,285,287,290,293,296,299,302,305,308,311,313],{"path":5,"title":6,"section":7,"order":7,"sidebar":8},"\u002Fbrand","Brand",null,false,{"path":10,"title":11,"section":12,"order":13,"sidebar":14},"\u002Fdocs\u002Fapi\u002Fcomposables","Composables","API",2,true,{"path":16,"title":17,"section":12,"order":18,"sidebar":14},"\u002Fdocs\u002Fapi\u002Futilities","Utilities",1,{"path":20,"title":21,"section":22,"order":23,"sidebar":14},"\u002Fdocs\u002Fcli","CLI","Getting Started",9,{"path":25,"title":26,"section":22,"order":27,"sidebar":14},"\u002Fdocs\u002Fcompatibility","Compatibility",4,{"path":29,"title":30,"section":31,"order":32,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Fbody","Body","Components",3,{"path":34,"title":35,"section":31,"order":36,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Fbutton","Button",13,{"path":38,"title":39,"section":31,"order":40,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Fcodeblock","CodeBlock",18,{"path":42,"title":43,"section":31,"order":44,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Fcodeinline","CodeInline",19,{"path":46,"title":47,"section":31,"order":48,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Fcolumn","Column",8,{"path":50,"title":51,"section":31,"order":52,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Fcontainer","Container",5,{"path":54,"title":55,"section":31,"order":56,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Ffont","Font",11,{"path":58,"title":59,"section":31,"order":13,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Fhead","Head",{"path":61,"title":62,"section":31,"order":23,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Fheading","Heading",{"path":64,"title":65,"section":31,"order":66,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Fhr","Hr",16,{"path":68,"title":69,"section":31,"order":18,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Fhtml","Html",{"path":71,"title":72,"section":31,"order":73,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Fimg","Img",14,{"path":75,"title":76,"section":31,"order":27,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Flayout","Layout",{"path":78,"title":79,"section":31,"order":80,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Flink","Link",12,{"path":82,"title":83,"section":31,"order":84,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Fmarkdown","Markdown",20,{"path":86,"title":87,"section":31,"order":88,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Fnotoutlook","NotOutlook",22,{"path":90,"title":91,"section":31,"order":92,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Fnowidows","NoWidows",26,{"path":94,"title":95,"section":31,"order":96,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Foutlook","Outlook",21,{"path":98,"title":99,"section":31,"order":100,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Foutlookbg","OutlookBg",23,{"path":102,"title":103,"section":31,"order":104,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Foverview","Overview",0,{"path":106,"title":107,"section":31,"order":108,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Fplaintext","Plaintext",31,{"path":110,"title":111,"section":31,"order":112,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Fpreheader","Preheader",17,{"path":114,"title":115,"section":31,"order":116,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Fqrcode","QrCode",30,{"path":118,"title":119,"section":31,"order":120,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Fraw","Raw",28,{"path":122,"title":123,"section":31,"order":124,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Frow","Row",7,{"path":126,"title":127,"section":31,"order":128,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Fsection","Section",6,{"path":130,"title":131,"section":31,"order":132,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Fspacer","Spacer",15,{"path":134,"title":135,"section":31,"order":136,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Ftailwind","Tailwind",29,{"path":138,"title":139,"section":31,"order":140,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Ftext","Text",10,{"path":142,"title":143,"section":31,"order":144,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Fvml","Vml",24,{"path":146,"title":147,"section":31,"order":148,"sidebar":14},"\u002Fdocs\u002Fcomponents\u002Fwithurl","WithUrl",27,{"path":150,"title":151,"section":152,"order":128,"sidebar":14},"\u002Fdocs\u002Fdeploy\u002Faws-ses","AWS SES","Deploy",{"path":154,"title":155,"section":152,"order":124,"sidebar":14},"\u002Fdocs\u002Fdeploy\u002Fcloudflare","Cloudflare",{"path":157,"title":158,"section":152,"order":32,"sidebar":14},"\u002Fdocs\u002Fdeploy\u002Fmailgun","Mailgun",{"path":160,"title":161,"section":152,"order":18,"sidebar":14},"\u002Fdocs\u002Fdeploy\u002Fnodemailer","Nodemailer",{"path":163,"title":164,"section":152,"order":27,"sidebar":14},"\u002Fdocs\u002Fdeploy\u002Fpostmark","Postmark",{"path":166,"title":167,"section":152,"order":52,"sidebar":14},"\u002Fdocs\u002Fdeploy\u002Fresend","Resend",{"path":169,"title":170,"section":152,"order":13,"sidebar":14},"\u002Fdocs\u002Fdeploy\u002Fsendgrid","SendGrid",{"path":172,"title":173,"section":174,"order":32,"sidebar":14},"\u002Fdocs\u002Fdevelopment\u002Fconfiguration","Configuration","Development",{"path":176,"title":177,"section":174,"order":52,"sidebar":14},"\u002Fdocs\u002Fdevelopment\u002Fevents","Events",{"path":179,"title":180,"section":174,"order":128,"sidebar":14},"\u002Fdocs\u002Fdevelopment\u002Fi18n","i18n",{"path":182,"title":183,"section":174,"order":13,"sidebar":14},"\u002Fdocs\u002Fdevelopment\u002Flocal","Dev Server",{"path":185,"title":107,"section":174,"order":27,"sidebar":14},"\u002Fdocs\u002Fdevelopment\u002Fplaintext",{"path":187,"title":188,"section":174,"order":18,"sidebar":14},"\u002Fdocs\u002Fdevelopment\u002Ftemplates","Templates",{"path":190,"title":191,"section":22,"order":32,"sidebar":14},"\u002Fdocs\u002Feditor-setup","Editor Setup",{"path":193,"title":194,"section":22,"order":48,"sidebar":14},"\u002Fdocs\u002Fglossary","Glossary",{"path":196,"title":197,"section":22,"order":128,"sidebar":8},"\u002Fdocs\u002Finstallation\u002Fframeworks","Framework Guides",{"path":199,"title":200,"section":197,"order":52,"sidebar":14},"\u002Fdocs\u002Finstallation\u002Fframeworks\u002Fadonisjs","AdonisJS",{"path":202,"title":203,"section":197,"order":32,"sidebar":14},"\u002Fdocs\u002Finstallation\u002Fframeworks\u002Fastro","Astro",{"path":205,"title":206,"section":197,"order":18,"sidebar":14},"\u002Fdocs\u002Finstallation\u002Fframeworks\u002Flaravel","Laravel",{"path":208,"title":209,"section":197,"order":48,"sidebar":14},"\u002Fdocs\u002Finstallation\u002Fframeworks\u002Fnextjs","Next.js",{"path":211,"title":212,"section":197,"order":13,"sidebar":14},"\u002Fdocs\u002Finstallation\u002Fframeworks\u002Fnuxt","Nuxt",{"path":214,"title":215,"section":197,"order":124,"sidebar":14},"\u002Fdocs\u002Finstallation\u002Fframeworks\u002Fqwik","Qwik",{"path":217,"title":218,"section":197,"order":128,"sidebar":14},"\u002Fdocs\u002Finstallation\u002Fframeworks\u002Fsolid","Solid",{"path":220,"title":221,"section":197,"order":27,"sidebar":14},"\u002Fdocs\u002Finstallation\u002Fframeworks\u002Fsveltekit","SvelteKit",{"path":223,"title":224,"section":197,"order":23,"sidebar":14},"\u002Fdocs\u002Finstallation\u002Fframeworks\u002Ftanstack","TanStack Start",{"path":226,"title":227,"section":22,"order":13,"sidebar":14},"\u002Fdocs\u002Finstallation","Installation",{"path":229,"title":230,"section":22,"order":32,"sidebar":8},"\u002Fdocs\u002Finstallation\u002Fmanual","Manual Installation",{"path":232,"title":233,"section":22,"order":27,"sidebar":8},"\u002Fdocs\u002Finstallation\u002Fmonorepo","Monorepo Installation",{"path":235,"title":236,"section":22,"order":52,"sidebar":8},"\u002Fdocs\u002Finstallation\u002Fvite","Vite Plugin",{"path":238,"title":239,"section":22,"order":18,"sidebar":14},"\u002Fdocs\u002Fintroduction","What is Maizzle?",{"path":241,"title":242,"section":243,"order":13,"sidebar":14},"\u002Fdocs\u002Fmigrate\u002Fmjml","MJML","Migrate to Maizzle",{"path":245,"title":246,"section":243,"order":18,"sidebar":14},"\u002Fdocs\u002Fmigrate\u002Freact-email","React Email",{"path":248,"title":249,"section":22,"order":124,"sidebar":14},"\u002Fdocs\u002Fresources","Resources",{"path":251,"title":252,"section":22,"order":128,"sidebar":14},"\u002Fdocs\u002Fskill","Agent Skill",{"path":254,"title":255,"section":256,"order":18,"sidebar":14},"\u002Fdocs\u002Ftailwindcss","Tailwind CSS","Core Concepts",{"path":258,"title":259,"section":260,"order":13,"sidebar":14},"\u002Fdocs\u002Ftransformers\u002Fadd-attributes","Add Attributes","Transformers",{"path":262,"title":263,"section":260,"order":48,"sidebar":14},"\u002Fdocs\u002Ftransformers\u002Fattribute-to-style","Attribute to Style",{"path":265,"title":266,"section":260,"order":36,"sidebar":14},"\u002Fdocs\u002Ftransformers\u002Fbase-url","Base URL",{"path":268,"title":269,"section":260,"order":66,"sidebar":14},"\u002Fdocs\u002Ftransformers\u002Fentities","Entities",{"path":271,"title":272,"section":260,"order":80,"sidebar":14},"\u002Fdocs\u002Ftransformers\u002Ffilters","Filters",{"path":274,"title":275,"section":260,"order":112,"sidebar":14},"\u002Fdocs\u002Ftransformers\u002Fformat","Format",{"path":277,"title":278,"section":260,"order":32,"sidebar":14},"\u002Fdocs\u002Ftransformers\u002Finline-css","Inline CSS",{"path":280,"title":281,"section":260,"order":56,"sidebar":14},"\u002Fdocs\u002Ftransformers\u002Finline-link","Inline Link",{"path":283,"title":284,"section":260,"order":40,"sidebar":14},"\u002Fdocs\u002Ftransformers\u002Fminify","Minify",{"path":286,"title":103,"section":260,"order":18,"sidebar":14},"\u002Fdocs\u002Ftransformers\u002Foverview",{"path":288,"title":289,"section":260,"order":27,"sidebar":14},"\u002Fdocs\u002Ftransformers\u002Fpurge-css","Purge CSS",{"path":291,"title":292,"section":260,"order":140,"sidebar":14},"\u002Fdocs\u002Ftransformers\u002Fremove-attributes","Remove Attributes",{"path":294,"title":295,"section":260,"order":132,"sidebar":14},"\u002Fdocs\u002Ftransformers\u002Freplace-strings","Replace Strings",{"path":297,"title":298,"section":260,"order":52,"sidebar":14},"\u002Fdocs\u002Ftransformers\u002Fsafe-selectors","Safe Selectors",{"path":300,"title":301,"section":260,"order":128,"sidebar":14},"\u002Fdocs\u002Ftransformers\u002Fshorthand-css","Shorthand CSS",{"path":303,"title":304,"section":260,"order":124,"sidebar":14},"\u002Fdocs\u002Ftransformers\u002Fsix-hex","Six-digit HEX",{"path":306,"title":307,"section":260,"order":73,"sidebar":14},"\u002Fdocs\u002Ftransformers\u002Furl-parameters","URL Parameters",{"path":309,"title":310,"section":22,"order":52,"sidebar":14},"\u002Fdocs\u002Fupgrade-guide","Upgrade Guide",{"path":312,"title":236,"section":256,"order":13,"sidebar":14},"\u002Fdocs\u002Fvite-plugin",{"path":314,"title":315,"section":7,"order":7,"sidebar":8},"\u002Fprivacy","Privacy Policy",{"id":317,"title":292,"body":318,"description":966,"extension":967,"meta":968,"navigation":14,"order":140,"path":291,"section":260,"seo":969,"sidebar":14,"stem":970,"toc":14,"__hash__":971},"docs\u002Fdocs\u002Ftransformers\u002Fremove-attributes.md",{"type":319,"value":320,"toc":957},"minimark",[321,325,329,334,350,485,489,492,497,500,562,573,577,580,665,673,677,680,765,774,777,784,925,928,943,951,954],[322,323,292],"h1",{"id":324},"remove-attributes",[326,327,328],"p",{},"Removes specified attributes from your HTML.",[330,331,333],"h2",{"id":332},"usage","Usage",[326,335,336,337,341,342,345,346,349],{},"By default, empty ",[338,339,340],"code",{},"style"," and ",[338,343,344],{},"class"," attributes are always removed. You may specify additional attributes to remove through the ",[338,347,348],{},"html.attributes.remove"," option:",[351,352,358],"pre",{"className":353,"code":354,"filename":355,"language":356,"meta":357,"style":357},"language-ts shiki shiki-themes laserwave","export default defineConfig({\n  html: {\n    attributes: {\n      remove: [\n        'data-test',\n        { name: 'class', value: \u002F^js-\u002F },\n      ],\n    },\n  },\n})\n","maizzle.config.ts","ts","",[338,359,360,379,391,400,410,425,465,470,475,480],{"__ignoreMap":357},[361,362,364,368,371,375],"span",{"class":363,"line":18},"line",[361,365,367],{"class":366},"s0ZPN","export",[361,369,370],{"class":366}," default",[361,372,374],{"class":373},"sZNF3"," defineConfig",[361,376,378],{"class":377},"sGGKt","({\n",[361,380,381,385,388],{"class":363,"line":13},[361,382,384],{"class":383},"sLaUg","  html",[361,386,387],{"class":377},":",[361,389,390],{"class":377}," {\n",[361,392,393,396,398],{"class":363,"line":32},[361,394,395],{"class":383},"    attributes",[361,397,387],{"class":377},[361,399,390],{"class":377},[361,401,402,405,407],{"class":363,"line":27},[361,403,404],{"class":383},"      remove",[361,406,387],{"class":377},[361,408,409],{"class":377}," [\n",[361,411,412,415,419,422],{"class":363,"line":52},[361,413,414],{"class":377},"        '",[361,416,418],{"class":417},"sXiT_","data-test",[361,420,421],{"class":377},"'",[361,423,424],{"class":377},",\n",[361,426,427,430,433,435,438,440,442,445,448,450,453,456,459,462],{"class":363,"line":128},[361,428,429],{"class":377},"        {",[361,431,432],{"class":383}," name",[361,434,387],{"class":377},[361,436,437],{"class":377}," '",[361,439,344],{"class":417},[361,441,421],{"class":377},[361,443,444],{"class":377},",",[361,446,447],{"class":383}," value",[361,449,387],{"class":377},[361,451,452],{"class":377}," \u002F",[361,454,455],{"class":366},"^",[361,457,458],{"class":417},"js-",[361,460,461],{"class":377},"\u002F",[361,463,464],{"class":377}," },\n",[361,466,467],{"class":363,"line":124},[361,468,469],{"class":377},"      ],\n",[361,471,472],{"class":363,"line":48},[361,473,474],{"class":377},"    },\n",[361,476,477],{"class":363,"line":23},[361,478,479],{"class":377},"  },\n",[361,481,482],{"class":363,"line":140},[361,483,484],{"class":377},"})\n",[330,486,488],{"id":487},"customization","Customization",[326,490,491],{},"There are three ways to specify which attributes to remove.",[493,494,496],"h3",{"id":495},"string","String",[326,498,499],{},"Passing a string removes the attribute when its value is empty.",[351,501,503],{"className":353,"code":502,"filename":355,"language":356,"meta":357,"style":357},"export default defineConfig({\n  html: {\n    attributes: {\n      remove: ['data-src'],\n    },\n  },\n})\n",[338,504,505,515,523,531,550,554,558],{"__ignoreMap":357},[361,506,507,509,511,513],{"class":363,"line":18},[361,508,367],{"class":366},[361,510,370],{"class":366},[361,512,374],{"class":373},[361,514,378],{"class":377},[361,516,517,519,521],{"class":363,"line":13},[361,518,384],{"class":383},[361,520,387],{"class":377},[361,522,390],{"class":377},[361,524,525,527,529],{"class":363,"line":32},[361,526,395],{"class":383},[361,528,387],{"class":377},[361,530,390],{"class":377},[361,532,533,535,537,540,542,545,547],{"class":363,"line":27},[361,534,404],{"class":383},[361,536,387],{"class":377},[361,538,539],{"class":377}," [",[361,541,421],{"class":377},[361,543,544],{"class":417},"data-src",[361,546,421],{"class":377},[361,548,549],{"class":377},"],\n",[361,551,552],{"class":363,"line":52},[361,553,474],{"class":377},[361,555,556],{"class":363,"line":128},[361,557,479],{"class":377},[361,559,560],{"class":363,"line":124},[361,561,484],{"class":377},[326,563,564,565,568,569,572],{},"This removes ",[338,566,567],{},"data-src=\"\""," but leaves ",[338,570,571],{},"data-src=\"value\""," untouched.",[493,574,576],{"id":575},"object-with-exact-value","Object with exact value",[326,578,579],{},"You may remove an attribute only when it matches a specific value:",[351,581,583],{"className":353,"code":582,"filename":355,"language":356,"meta":357,"style":357},"export default defineConfig({\n  html: {\n    attributes: {\n      remove: [\n        { name: 'id', value: 'test' },\n      ],\n    },\n  },\n})\n",[338,584,585,595,603,611,619,649,653,657,661],{"__ignoreMap":357},[361,586,587,589,591,593],{"class":363,"line":18},[361,588,367],{"class":366},[361,590,370],{"class":366},[361,592,374],{"class":373},[361,594,378],{"class":377},[361,596,597,599,601],{"class":363,"line":13},[361,598,384],{"class":383},[361,600,387],{"class":377},[361,602,390],{"class":377},[361,604,605,607,609],{"class":363,"line":32},[361,606,395],{"class":383},[361,608,387],{"class":377},[361,610,390],{"class":377},[361,612,613,615,617],{"class":363,"line":27},[361,614,404],{"class":383},[361,616,387],{"class":377},[361,618,409],{"class":377},[361,620,621,623,625,627,629,632,634,636,638,640,642,645,647],{"class":363,"line":52},[361,622,429],{"class":377},[361,624,432],{"class":383},[361,626,387],{"class":377},[361,628,437],{"class":377},[361,630,631],{"class":417},"id",[361,633,421],{"class":377},[361,635,444],{"class":377},[361,637,447],{"class":383},[361,639,387],{"class":377},[361,641,437],{"class":377},[361,643,644],{"class":417},"test",[361,646,421],{"class":377},[361,648,464],{"class":377},[361,650,651],{"class":363,"line":128},[361,652,469],{"class":377},[361,654,655],{"class":363,"line":124},[361,656,474],{"class":377},[361,658,659],{"class":363,"line":48},[361,660,479],{"class":377},[361,662,663],{"class":363,"line":23},[361,664,484],{"class":377},[326,666,564,667,568,670,572],{},[338,668,669],{},"id=\"test\"",[338,671,672],{},"id=\"other\"",[493,674,676],{"id":675},"object-with-regexp","Object with RegExp",[326,678,679],{},"You may use a regular expression to match attribute values:",[351,681,683],{"className":353,"code":682,"filename":355,"language":356,"meta":357,"style":357},"export default defineConfig({\n  html: {\n    attributes: {\n      remove: [\n        { name: 'data-id', value: \u002F\\d\u002F },\n      ],\n    },\n  },\n})\n",[338,684,685,695,703,711,719,749,753,757,761],{"__ignoreMap":357},[361,686,687,689,691,693],{"class":363,"line":18},[361,688,367],{"class":366},[361,690,370],{"class":366},[361,692,374],{"class":373},[361,694,378],{"class":377},[361,696,697,699,701],{"class":363,"line":13},[361,698,384],{"class":383},[361,700,387],{"class":377},[361,702,390],{"class":377},[361,704,705,707,709],{"class":363,"line":32},[361,706,395],{"class":383},[361,708,387],{"class":377},[361,710,390],{"class":377},[361,712,713,715,717],{"class":363,"line":27},[361,714,404],{"class":383},[361,716,387],{"class":377},[361,718,409],{"class":377},[361,720,721,723,725,727,729,732,734,736,738,740,742,745,747],{"class":363,"line":52},[361,722,429],{"class":377},[361,724,432],{"class":383},[361,726,387],{"class":377},[361,728,437],{"class":377},[361,730,731],{"class":417},"data-id",[361,733,421],{"class":377},[361,735,444],{"class":377},[361,737,447],{"class":383},[361,739,387],{"class":377},[361,741,452],{"class":377},[361,743,744],{"class":417},"\\d",[361,746,461],{"class":377},[361,748,464],{"class":377},[361,750,751],{"class":363,"line":128},[361,752,469],{"class":377},[361,754,755],{"class":363,"line":124},[361,756,474],{"class":377},[361,758,759],{"class":363,"line":48},[361,760,479],{"class":377},[361,762,763],{"class":363,"line":23},[361,764,484],{"class":377},[326,766,564,767,769,770,773],{},[338,768,731],{}," when its value contains a digit, such as ",[338,771,772],{},"data-id=\"item-3\"",".",[330,775,12],{"id":776},"api",[326,778,779,780,783],{},"Use ",[338,781,782],{},"removeAttributes"," programmatically to strip attributes from an HTML string.",[351,785,787],{"className":353,"code":786,"language":356,"meta":357,"style":357},"import { removeAttributes } from '@maizzle\u002Fframework'\n\nconst out = removeAttributes('\u003Cp style=\"\" data-x=\"\">x\u003C\u002Fp>', [\n  'data-x',\n  { name: 'role', value: 'none' },\n  { name: 'data-id', value: \u002F\\d\u002F },\n])\n",[338,788,789,815,820,849,861,892,920],{"__ignoreMap":357},[361,790,791,794,797,801,804,807,809,812],{"class":363,"line":18},[361,792,793],{"class":366},"import",[361,795,796],{"class":377}," {",[361,798,800],{"class":799},"sU-n2"," removeAttributes",[361,802,803],{"class":377}," }",[361,805,806],{"class":366}," from",[361,808,437],{"class":377},[361,810,811],{"class":417},"@maizzle\u002Fframework",[361,813,814],{"class":377},"'\n",[361,816,817],{"class":363,"line":13},[361,818,819],{"emptyLinePlaceholder":14},"\n",[361,821,822,826,829,833,835,838,840,843,845,847],{"class":363,"line":32},[361,823,825],{"class":824},"sIihq","const",[361,827,828],{"class":799}," out",[361,830,832],{"class":831},"sb4Pa"," =",[361,834,800],{"class":373},[361,836,837],{"class":377},"(",[361,839,421],{"class":377},[361,841,842],{"class":417},"\u003Cp style=\"\" data-x=\"\">x\u003C\u002Fp>",[361,844,421],{"class":377},[361,846,444],{"class":377},[361,848,409],{"class":377},[361,850,851,854,857,859],{"class":363,"line":27},[361,852,853],{"class":377},"  '",[361,855,856],{"class":417},"data-x",[361,858,421],{"class":377},[361,860,424],{"class":377},[361,862,863,866,868,870,872,875,877,879,881,883,885,888,890],{"class":363,"line":52},[361,864,865],{"class":377},"  {",[361,867,432],{"class":383},[361,869,387],{"class":377},[361,871,437],{"class":377},[361,873,874],{"class":417},"role",[361,876,421],{"class":377},[361,878,444],{"class":377},[361,880,447],{"class":383},[361,882,387],{"class":377},[361,884,437],{"class":377},[361,886,887],{"class":417},"none",[361,889,421],{"class":377},[361,891,464],{"class":377},[361,893,894,896,898,900,902,904,906,908,910,912,914,916,918],{"class":363,"line":128},[361,895,865],{"class":377},[361,897,432],{"class":383},[361,899,387],{"class":377},[361,901,437],{"class":377},[361,903,731],{"class":417},[361,905,421],{"class":377},[361,907,444],{"class":377},[361,909,447],{"class":383},[361,911,387],{"class":377},[361,913,452],{"class":377},[361,915,744],{"class":417},[361,917,461],{"class":377},[361,919,464],{"class":377},[361,921,922],{"class":363,"line":124},[361,923,924],{"class":377},"])\n",[326,926,927],{},"The first argument is your HTML string.",[326,929,930,931,934,935,938,939,942],{},"The second is an optional ",[338,932,933],{},"RemoveAttributeOption[]"," — bare strings remove the attribute when its value is empty, objects with ",[338,936,937],{},"value: 'literal'"," match exactly, and objects with ",[338,940,941],{},"value: \u002Fregex\u002F"," match a pattern.",[326,944,945,946,341,948,950],{},"Empty ",[338,947,340],{},[338,949,344],{}," attributes are always stripped, regardless of what you pass.",[326,952,953],{},"Returns the transformed HTML string.",[340,955,956],{},"html pre.shiki code .s0ZPN, html code.shiki .s0ZPN{--shiki-default:#40B4C4}html pre.shiki code .sZNF3, html code.shiki .sZNF3{--shiki-default:#EB64B9}html pre.shiki code .sGGKt, html code.shiki .sGGKt{--shiki-default:#7B6995}html pre.shiki code .sLaUg, html code.shiki .sLaUg{--shiki-default:#FFFFFF}html pre.shiki code .sXiT_, html code.shiki .sXiT_{--shiki-default:#B4DCE7}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sU-n2, html code.shiki .sU-n2{--shiki-default:#FFF}html pre.shiki code .sIihq, html code.shiki .sIihq{--shiki-default:#A96BC0}html pre.shiki code .sb4Pa, html code.shiki .sb4Pa{--shiki-default:#74DFC4}",{"title":357,"searchDepth":13,"depth":13,"links":958},[959,960,965],{"id":332,"depth":13,"text":333},{"id":487,"depth":13,"text":488,"children":961},[962,963,964],{"id":495,"depth":32,"text":496},{"id":575,"depth":32,"text":576},{"id":675,"depth":32,"text":676},{"id":776,"depth":13,"text":12},"Remove HTML attributes from elements based on name and value.","md",{},{"title":292,"description":966},"docs\u002Ftransformers\u002Fremove-attributes","6qG63AMWWsMapzZgn336A_QnrtIvq2UXPnTlkvnDfko",1781013241672]