{"id":24385,"date":"2022-12-02T14:31:56","date_gmt":"2022-12-02T09:01:56","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/"},"modified":"2022-12-02T14:31:56","modified_gmt":"2022-12-02T09:01:56","slug":"solved-how-to-get-the-contents-inside-alt-closed","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/","title":{"rendered":"[Solved] How to get the contents inside alt? [closed]"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-37668077\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"37668077\" data-parentid=\"37667007\" data-score=\"1\" data-position-on-page=\"1\" data-highest-scored=\"1\" data-question-has-accepted-highest-score=\"1\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<h1>Foreward<\/h1>\n<p>You should really use an html parser for this, but you seem to have creative control over the source string, and if it&#8217;s really this simple then the edge cases should be reduced.<\/p>\n<h1>Description<\/h1>\n<p><code>&lt;img\\s(?=(?:[^&gt;=]|=\"[^\"]*'|=\"[^\"]*\"|=[^'\"][^\\s&gt;]*)*?\\salt=['\"]([^\"]*)['\"]?)<br \/>\n(?:[^&gt;=]|=\"[^\"]*'|=\"[^\"]*\"|=[^'\"\\s]*)*\"\\s?\\\/?&gt;<\/code><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-How-to-get-the-contents-inside-alt-closed.png\" alt=\"Regular expression visualization\"><\/p>\n<p>This regular expression will do the following:<\/p>\n<ul>\n<li>find all the image tags<\/li>\n<li>require the image tag to have a <code>alt<\/code> attribute <\/li>\n<li>capture the <code>alt<\/code> attribute value and put into the capture group 1<\/li>\n<li>allow the value to be surrounded in single, double, or no quotes<\/li>\n<li>avoid some pretty difficult edge cases which would make matching HTML difficult<\/li>\n<\/ul>\n<h1>Example<\/h1>\n<p><strong>Live Demo<\/strong><\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/regex101.com\/r\/cN0lD4\/2\">https:\/\/regex101.com\/r\/cN0lD4\/2<\/a><\/p>\n<p><strong>Sample text<\/strong><\/p>\n<p>Note the difficult edge case in the second <code>img<\/code> tag.<\/p>\n<pre><code>&lt;a href=\"https:\/\/stackoverflow.com\/questions\/37667007\/gallery.com\/gallery-name\"; target=\"_blank\"&gt; &lt;img class=\"aligncenter\" src=\"https:\/\/stackoverflow.com\/questions\/37667007\/myblog.com\/wp-content\/image.jpg\" alt=\" I want to get this text\" width =\" 400 \" height=\"300\" \/&gt;&lt;\/a&gt;\n\n&lt;img onmouseover=\"  alt=\"This is not the droid you are looking for\" ;\"  class=\"aligncenter\" src=\"https:\/\/stackoverflow.com\/questions\/37667007\/myblog.com\/wp-content\/image.jpg\" alt=\"This is the droid I'm looking for.\" width =\" 400 \" height=\"300\" \/&gt;\n<\/code><\/pre>\n<p><strong>Sample Matches<\/strong><\/p>\n<ul>\n<li>Capture group 0 gets the entire <code>img<\/code> tag<\/li>\n<li>Capture group 1 gets just the value in the <code>alt<\/code> attribute, not including any surrounding quotes<\/li>\n<\/ul>\n<pre class=\"lang-none prettyprint-override\"><code>[0][0] = &lt;img class=\"aligncenter\" src=\"https:\/\/stackoverflow.com\/questions\/37667007\/myblog.com\/wp-content\/image.jpg\" alt=\" I want to get this text\" width =\" 400 \" height=\"300\" \/&gt;\n[0][1] =  I want to get this text\n\n[1][0] = &lt;img onmouseover=\"  alt=\"This is not the droid you are looking for\" ;\"  class=\"aligncenter\" src=\"https:\/\/stackoverflow.com\/questions\/37667007\/myblog.com\/wp-content\/image.jpg\" alt=\"This is the droid I'm looking for.\" width =\" 400 \" height=\"300\" \/&gt;\n[1][1] = This is the droid I'm looking for.\n<\/code><\/pre>\n<h1>Explanation<\/h1>\n<pre class=\"lang-none prettyprint-override\"><code>NODE                     EXPLANATION\n----------------------------------------------------------------------\n  &lt;img                     '&lt;img'\n----------------------------------------------------------------------\n  \\s                       whitespace (\\n, \\r, \\t, \\f, and \" \")\n----------------------------------------------------------------------\n  (?=                      look ahead to see if there is:\n----------------------------------------------------------------------\n    (?:                      group, but do not capture (0 or more\n                             times (matching the least amount\n                             possible)):\n----------------------------------------------------------------------\n      [^&gt;=]                    any character except: '&gt;', '='\n----------------------------------------------------------------------\n     |                        OR\n----------------------------------------------------------------------\n      ='                       '=\\''\n----------------------------------------------------------------------\n      [^']*                    any character except: ''' (0 or more\n                               times (matching the most amount\n                               possible))\n----------------------------------------------------------------------\n      '                        '\\''\n----------------------------------------------------------------------\n     |                        OR\n----------------------------------------------------------------------\n      =\"                       '=\"'\n----------------------------------------------------------------------\n      [^\"]*                    any character except: '\"' (0 or more\n                               times (matching the most amount\n                               possible))\n----------------------------------------------------------------------\n      \"                        '\"'\n----------------------------------------------------------------------\n     |                        OR\n----------------------------------------------------------------------\n      =                        '='\n----------------------------------------------------------------------\n      [^'\"]                    any character except: ''', '\"'\n----------------------------------------------------------------------\n      [^\\s&gt;]*                  any character except: whitespace (\\n,\n                               \\r, \\t, \\f, and \" \"), '&gt;' (0 or more\n                               times (matching the most amount\n                               possible))\n----------------------------------------------------------------------\n    )*?                      end of grouping\n----------------------------------------------------------------------\n    \\s                       whitespace (\\n, \\r, \\t, \\f, and \" \")\n----------------------------------------------------------------------\n    alt=\"alt=\"\n----------------------------------------------------------------------\n    ['\"]                     any character of: ''', '\"'\n----------------------------------------------------------------------\n    (                        group and capture to \\1:\n----------------------------------------------------------------------\n      [^\"]*                    any character except: '\"' (0 or more\n                               times (matching the most amount\n                               possible))\n----------------------------------------------------------------------\n    )                        end of \\1\n----------------------------------------------------------------------\n    ['\"]?                    any character of: ''', '\"' (optional\n                             (matching the most amount possible))\n----------------------------------------------------------------------\n  )                        end of look-ahead\n----------------------------------------------------------------------\n  (?:                      group, but do not capture (0 or more times\n                           (matching the most amount possible)):\n----------------------------------------------------------------------\n    [^&gt;=]                    any character except: '&gt;', '='\n----------------------------------------------------------------------\n   |                        OR\n----------------------------------------------------------------------\n    ='                       '=\\''\n----------------------------------------------------------------------\n    [^']*                    any character except: ''' (0 or more\n                             times (matching the most amount\n                             possible))\n----------------------------------------------------------------------\n    '                        '\\''\n----------------------------------------------------------------------\n   |                        OR\n----------------------------------------------------------------------\n    =\"                       '=\"'\n----------------------------------------------------------------------\n    [^\"]*                    any character except: '\"' (0 or more\n                             times (matching the most amount\n                             possible))\n----------------------------------------------------------------------\n    \"                        '\"'\n----------------------------------------------------------------------\n   |                        OR\n----------------------------------------------------------------------\n    =                        '='\n----------------------------------------------------------------------\n    [^'\"\\s]*                 any character except: ''', '\"',\n                             whitespace (\\n, \\r, \\t, \\f, and \" \") (0\n                             or more times (matching the most amount\n                             possible))\n----------------------------------------------------------------------\n  )*                       end of grouping\n----------------------------------------------------------------------\n  \"                        '\"'\n----------------------------------------------------------------------\n  \\s?                      whitespace (\\n, \\r, \\t, \\f, and \" \")\n                           (optional (matching the most amount\n                           possible))\n----------------------------------------------------------------------\n  \\\/?                      \"https:\/\/stackoverflow.com\/\" (optional (matching the most amount\n                           possible))\n----------------------------------------------------------------------\n  &gt;                        '&gt;'\n----------------------------------------------------------------------\n<\/code><\/pre>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\"><\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved How to get the contents inside alt? [closed] <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] Foreward You should really use an html parser for this, but you seem to have creative control over the source string, and if it&#8217;s really this simple then the edge cases should be reduced. Description &lt;img\\s(?=(?:[^&gt;=]|=&#8221;[^&#8221;]*&#8217;|=&#8221;[^&#8221;]*&#8221;|=[^'&#8221;][^\\s&gt;]*)*?\\salt=[&#8216;&#8221;]([^&#8221;]*)[&#8216;&#8221;]?) (?:[^&gt;=]|=&#8221;[^&#8221;]*&#8217;|=&#8221;[^&#8221;]*&#8221;|=[^'&#8221;\\s]*)*&#8221;\\s?\\\/?&gt; This regular expression will do the following: find all the image tags require the image tag to &#8230; <a title=\"[Solved] How to get the contents inside alt? [closed]\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/\" aria-label=\"More on [Solved] How to get the contents inside alt? [closed]\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[339,347],"class_list":["post-24385","post","type-post","status-publish","format-standard","hentry","category-solved","tag-php","tag-regex"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Solved] How to get the contents inside alt? [closed] - JassWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] How to get the contents inside alt? [closed] - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] Foreward You should really use an html parser for this, but you seem to have creative control over the source string, and if it&#8217;s really this simple then the edge cases should be reduced. Description &lt;imgs(?=(?:[^&gt;=]|=&quot;[^&quot;]*&#039;|=&quot;[^&quot;]*&quot;|=[^&#039;&quot;][^s&gt;]*)*?salt=[&#039;&quot;]([^&quot;]*)[&#039;&quot;]?) (?:[^&gt;=]|=&quot;[^&quot;]*&#039;|=&quot;[^&quot;]*&quot;|=[^&#039;&quot;s]*)*&quot;s?\/?&gt; This regular expression will do the following: find all the image tags require the image tag to ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-02T09:01:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-How-to-get-the-contents-inside-alt-closed.png\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] How to get the contents inside alt? [closed]\",\"datePublished\":\"2022-12-02T09:01:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/\"},\"wordCount\":153,\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-How-to-get-the-contents-inside-alt-closed.png\",\"keywords\":[\"php\",\"regex\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/\",\"name\":\"[Solved] How to get the contents inside alt? [closed] - JassWeb\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-How-to-get-the-contents-inside-alt-closed.png\",\"datePublished\":\"2022-12-02T09:01:56+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/#primaryimage\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-How-to-get-the-contents-inside-alt-closed.png\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-How-to-get-the-contents-inside-alt-closed.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] How to get the contents inside alt? [closed]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jassweb.com\/solved\/#website\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jassweb.com\/solved\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"contentUrl\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775193939\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775193939\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\/\/jassweb.com\"],\"url\":\"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] How to get the contents inside alt? [closed] - JassWeb","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] How to get the contents inside alt? [closed] - JassWeb","og_description":"[ad_1] Foreward You should really use an html parser for this, but you seem to have creative control over the source string, and if it&#8217;s really this simple then the edge cases should be reduced. Description &lt;imgs(?=(?:[^&gt;=]|=\"[^\"]*'|=\"[^\"]*\"|=[^'\"][^s&gt;]*)*?salt=['\"]([^\"]*)['\"]?) (?:[^&gt;=]|=\"[^\"]*'|=\"[^\"]*\"|=[^'\"s]*)*\"s?\/?&gt; This regular expression will do the following: find all the image tags require the image tag to ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/","og_site_name":"JassWeb","article_published_time":"2022-12-02T09:01:56+00:00","og_image":[{"url":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-How-to-get-the-contents-inside-alt-closed.png","type":"","width":"","height":""}],"author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] How to get the contents inside alt? [closed]","datePublished":"2022-12-02T09:01:56+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/"},"wordCount":153,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"image":{"@id":"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/#primaryimage"},"thumbnailUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-How-to-get-the-contents-inside-alt-closed.png","keywords":["php","regex"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/","url":"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/","name":"[Solved] How to get the contents inside alt? [closed] - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/#primaryimage"},"image":{"@id":"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/#primaryimage"},"thumbnailUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-How-to-get-the-contents-inside-alt-closed.png","datePublished":"2022-12-02T09:01:56+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/#primaryimage","url":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-How-to-get-the-contents-inside-alt-closed.png","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-How-to-get-the-contents-inside-alt-closed.png"},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-how-to-get-the-contents-inside-alt-closed\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] How to get the contents inside alt? [closed]"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775193939","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775193939","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/24385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=24385"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/24385\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=24385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=24385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=24385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}