{"id":57347,"date":"2025-01-23T03:01:05","date_gmt":"2025-01-22T17:01:05","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=57347"},"modified":"2025-01-20T18:52:32","modified_gmt":"2025-01-20T08:52:32","slug":"wordpress-bold-for-strong-deprecation-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wordpress-bold-for-strong-deprecation-tutorial\/","title":{"rendered":"WordPress Bold for Strong Deprecation Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=\"_blank\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp_b_strong.gif\" rel=\"noopener\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"WordPress Bold for Strong Deprecation Tutorial\" src=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp_b_strong.gif\" title=\"WordPress Bold for Strong Deprecation Tutorial\"  style=\"float:left;\"   \/><\/a><p class=\"wp-caption-text\">WordPress Bold for Strong Deprecation Tutorial<\/p><\/div>\n<p>Let&#8217;s face it, <a href='#pop'>this blog posting<\/a>&#8216;s original premise has been waiting in the wings, for publication.  Things move on, and it is published now, pushed up the priority list as we discovered &#8230;<\/p>\n<ol>\n<li>issues, resulting in transparent text, regarding <i>code<\/i> elements when hosting <i>b<\/i><sub>old<\/sub> and\/or <i>strong<\/i> elements, that had several line breaks in them, as so we added a new document.body <i>onload<\/i> calling Javascript function into the workings of good ol&#8217; TwentyTen theme header.php logic, as per &#8230;<br \/>\n&lt;?php echo &#8221;<br \/>\n<code><br \/>\nfunction precalpass() {<br \/>\n  var cdes=document.getElementsByTagName('code');<br \/>\n  var blinearrs=[], jit=0, blrecs=[], wasblr='', toblr='', kit=0, delimx=String.fromCharCode(10);<br \/>\n  for (var itdzs=0; itdzs&lt;cdes.length; itdzs++) {  \/\/ thanks to https:\/\/stackoverflow.com\/questions\/784539\/how-do-i-replace-all-line-breaks-in-a-string-with-br-elements<br \/>\n    if (('' + cdes[itdzs].innerHTML + '  ').substring(0,2) == (String.fromCharCode(13) + String.fromCharCode(10))) {<br \/>\n        cdes[itdzs].innerHTML='&lt;br&gt;' + cdes[itdzs].innerHTML.substring(2);<br \/>\n    }<br \/>\n    if (('' + cdes[itdzs].innerHTML + '  ').substring(0,1) == (String.fromCharCode(10))) {<br \/>\n        cdes[itdzs].innerHTML=' &lt;br&gt;' + String.fromCharCode(10) + cdes[itdzs].innerHTML.substring(1);<br \/>\n    }<br \/>\n    if (cdes[itdzs].innerHTML.replace(\/(?:\\r\\n|\\r|\\n)\/g, '&lt;br&gt;') != cdes[itdzs].innerHTML) {<br \/>\n        cdes[itdzs].innerHTML=cdes[itdzs].innerHTML.replace(\/(?:\\r\\n|\\r|\\n)\/g, '&lt;br&gt;');<br \/>\n    }<br \/>\n    while (cdes[itdzs].innerHTML.indexOf(String.fromCharCode(13) + String.fromCharCode(10) + String.fromCharCode(13) + String.fromCharCode(10)) != -1) {<br \/>\n      cdes[itdzs].innerHTML=cdes[itdzs].innerHTML.replace(String.fromCharCode(13) + String.fromCharCode(10) + String.fromCharCode(13) + String.fromCharCode(10), String.fromCharCode(13) + String.fromCharCode(10) + '&lt;br&gt;' + String.fromCharCode(13) + String.fromCharCode(10));<br \/>\n    }<br \/>\n    blinearrs=cdes[itdzs].innerHTML.split('&lt;b&gt;');<br \/>\n    for (jit=eval(-1 + eval('' + blinearrs.length)); jit&gt;=0; jit--) {<br \/>\n      delimx='&lt;br&gt;';<br \/>\n      if (eval('' + blinearrs[jit].split('&lt;\/b&gt;')[0].split(delimx).length) &gt; 6) {<br \/>\n         blrecs=blinearrs[jit].split('&lt;\/b&gt;')[0].split(delimx);<br \/>\n         wasblr='&lt;b&gt;' + blinearrs[jit].split('&lt;\/b&gt;')[0] + '&lt;\/b&gt;';<br \/>\n         toblr=wasblr;<br \/>\n         for (kit=1; kit&lt;blrecs.length; kit++) {<br \/>\n            if (blrecs[kit].replace(String.fromCharCode(13),'').trim() != '') {<br \/>\n               toblr=toblr.replace(blrecs[kit], '&lt;\/b&gt;&lt;b&gt;' + blrecs[kit]);<br \/>\n            }<br \/>\n         }<br \/>\n         if (cdes[itdzs].innerHTML.indexOf(wasblr) != -1) {<br \/>\n         cdes[itdzs].innerHTML=cdes[itdzs].innerHTML.replace(wasblr, toblr);<br \/>\n         }<br \/>\n      }<br \/>\n    }<br \/>\n    blinearrs=cdes[itdzs].innerHTML.split('&lt;strong&gt;');<br \/>\n    for (jit=eval(-1 + eval('' + blinearrs.length)); jit&gt;=0; jit--) {<br \/>\n      if (eval('' + blinearrs[jit].split('&lt;\/strong&gt;')[0].split(delimx).length) &gt; 6) {<br \/>\n         blrecs=blinearrs[jit].split('&lt;\/strong&gt;')[0].split(delimx);<br \/>\n         wasblr='&lt;strong&gt;' + blinearrs[jit].split('&lt;\/strong&gt;')[0] + '&lt;\/strong&gt;';<br \/>\n         toblr=wasblr;<br \/>\n         for (kit=1; kit&lt;blrecs.length; kit++) {<br \/>\n            if (blrecs[kit].replace(String.fromCharCode(13),'').trim() != '') {<br \/>\n               toblr=toblr.replace(blrecs[kit], '&lt;\/strong&gt;&lt;strong&gt;' + blrecs[kit]);<br \/>\n            }<br \/>\n         }<br \/>\n         if (cdes[itdzs].innerHTML.indexOf(wasblr) != -1) {<br \/>\n         cdes[itdzs].innerHTML=cdes[itdzs].innerHTML.replace(wasblr, toblr);<br \/>\n         }<br \/>\n      }<br \/>\n    }<br \/>\n    if (cdes[itdzs].innerHTML.trim() == '') {  cdes[itdzs].style.display='none'; }<br \/>\n  }<br \/>\n}<br \/>\n<\/code><br \/>\n?&gt;<\/p>\n<p> &#8230; to remedy this issue &#8230;<\/p>\n<p><img src='https:\/\/www.rjmprogramming.com.au\/ITblog\/code_tag_oops.gif?rand=7654768'><\/img><\/p>\n<p>&#8230; and to add to &#8230;<\/p>\n<\/li>\n<li>\n<p id=pop>We&#8217;ve reached the time when measures to counteract our <a target=\"_blank\" title='Deprecation information from W3schools' href='https:\/\/www.w3schools.com\/JSREF\/deprecated.htm' rel=\"noopener\">&#8220;deprecation bound&#8221;<\/a> penchant for using the <a target=\"_blank\" title='HTML b element information from W3schools' href='https:\/\/www.w3schools.com\/tags\/tag_b.asp' rel=\"noopener\"><i>b<\/i><\/a> HTML element in WordPress blogs has come home to bite us!  Do you remember our first steps with <a title='WordPress Bold for Strong Tutorial' href='#wpbst'>WordPress Bold for Strong Tutorial<\/a> regarding <i>b<\/i> elements that spanned several lines of text?  Well, we need to be more pre-emptive here, because &#8230;<\/p>\n<ul>\n<li><i>b<\/i> elements are being deprecated (in favour of <a target=\"_blank\" title='HTML strong element information from W3schools' href='https:\/\/www.w3schools.com\/tags\/tag_strong.asp' rel=\"noopener\"><strong>strong<\/strong><\/a> usage) and <font color=blue>we &#8220;face the music&#8221;<\/font> &#8230;<\/li>\n<li>our logic, then, was inadequate when an adjusted <i>b<\/i> element <font color=purple>contained any <a target=\"_blank\" title='HTML attributes information from W3schools' href='https:\/\/www.w3schools.com\/html\/html_attributes.asp' rel=\"noopener\">attributes<\/a><\/font><\/li>\n<\/ul>\n<p>Luckily, in our WordPress Blog <font size=1>(you are reading)<\/font> TwentyTen theme&#8217;s <font size=1>(good ol&#8217;)<\/font> header.php (predominantly <a target=\"_blank\" title='WordPress codex' href='https:\/\/codex.wordpress.org\/Main_Page' rel=\"noopener\">&#8220;codex&#8221;<\/a>) PHP code potentially offending user produced HTML is encapsulated via &#8230;<\/p>\n<p><code><br \/>\n$post-&gt;post_content<br \/>\n<\/code><\/p>\n<p> &#8230; which takes a front seat, as a really appropriate serverside intervention point, ahead of any clientside Javascript (would have been much harder and more awkward) solution, with our more pre-emptive &#8230;<\/p>\n<p>&lt;?php<br \/>\n<code><br \/>\n  if (isset($post-&gt;post_content)) {  \/\/ Bold to STRONG perhaps<br \/>\n    $bolds=explode('&lt;\/' . 'b' . '&gt;', $post-&gt;post_content);<br \/>\n    $worryb=false;<br \/>\n    <font color=blue>if (strpos($post->post_content, \"<\/b>\") !== false) { $worryb=true;  }<\/font><br \/>\n    for ($ichb=0; $ichb&lt;(-1 + sizeof($bolds)); $ichb++) {<br \/>\n      if (strpos($bolds[$ichb], '&lt;' . 'b' . '&gt;') !== false) {<br \/>\n        $bcontent=explode('&lt;' . 'b' . '&gt;', $bolds[$ichb])[-1 + sizeof(explode('&lt;' . 'b' . '&gt;', $bolds[$ichb]))];<br \/>\n        $crlflines=explode(\"\\n\", $bcontent);<br \/>\n        if (sizeof($crlflines) &gt; 4) { $worryb=true; }<br \/>\n      }<br \/>\n    }<br \/>\n    if ($worryb) {<br \/>\n      $post-&gt;post_content=str_replace('&lt;' . 'b' . '&gt;', '&lt;' . 'str' . 'ong' . '&gt;', <font color=purple>str_replace('&lt;' . 'b' . ' ', '&lt;' . 'str' . 'ong' . ' ',<\/font> str_replace('&lt;\/' . 'b' . '&gt;', '&lt;\/' . 'str' . 'ong' . '&gt;', $post-&gt;post_content)<font color=purple>)<\/font>);<br \/>\n    }<br \/>\n  }<br \/>\n<\/code><br \/>\n?&gt;<\/p>\n<p> &#8230; as well as &#8220;the cloning of <i>b<\/i> concerning CSS to <strong>strong<\/strong>&#8221; as per <font color=olive>the added<\/font> &#8230;<\/p>\n<p>&lt;?php echo &#8221;<br \/>\n&lt;style&gt;<br \/>\n<code><br \/>\n\/* Thanks to <a target=\"_blank\" title='https:\/\/cssgradient.io\/blog\/css-gradient-text\/' href='https:\/\/cssgradient.io\/blog\/css-gradient-text\/' rel=\"noopener\">https:\/\/cssgradient.io\/blog\/css-gradient-text\/<\/a> below *\/<br \/>\n<br \/>\n<font color=olive>\/*<\/font><br \/>\nb:not(.dyk) {<br \/>\n  background: -webkit-linear-gradient(#eee, #333);<br \/>\n  -webkit-background-clip: text;<br \/>\n  -webkit-text-fill-color: transparent;<br \/>\n}<br \/>\ncode b {<br \/>\n  background: -webkit-linear-gradient(#eee, #333);<br \/>\n  -webkit-background-clip: text;<br \/>\n  -webkit-text-fill-color: transparent;<br \/>\n}<br \/>\n<font color=olive>*\/<\/font><br \/>\n<br \/>\n<font color=olive>\/* strong:not(.dyk) {<br \/>\n  background: -webkit-linear-gradient(#eee, #333);<br \/>\n  -webkit-background-clip: text;<br \/>\n  -webkit-text-fill-color: transparent;<br \/>\n}<br \/>\n*\/<br \/>\ncode strong {<br \/>\n  background: -webkit-linear-gradient(#eee, #333);<br \/>\n  -webkit-background-clip: text;<br \/>\n  -webkit-text-fill-color: transparent;<br \/>\n}<\/font><br \/>\n<\/code><br \/>\n&lt;\/style&gt;<br \/>\n&#8220;; ?&gt;<\/p>\n<p> &#8230; to better address this issue.  Testing our adjusted PHP header.php code had us going to heavily affected <a target=\"_blank\" href='https:\/\/www.rjmprogramming.com.au\/ITblog\/wordpress-user-header-section-border-primer-tutorial\/' title='WordPress User Header Section Border Primer Tutorial' rel=\"noopener\">WordPress User Header Section Border Primer Tutorial<\/a> both before and after the changes to verify the improvement, we hope you can see in <a target=\"_blank\" href='https:\/\/www.rjmprogramming.com.au\/ITblog\/wp_b_strong.gif' title='Tutorial picture' rel=\"noopener\">today&#8217;s animated GIF tutorial picture<\/a>.<\/p>\n<p>And &#8230;<\/p>\n<p><b><i>Did you know?<\/i><\/b><\/p>\n<p>Our Did you know<sub>?<\/sub> and Stop Press sections use Javascript assistance for CSS styling purposes and so started avoiding strings containing &lt;b&gt; and &lt;\/b&gt; while appending <font color=blue>&#8220;strong&#8221; based code snippets<\/font> in header.php &#8230;<\/p>\n<p>&lt;?php echo &#8221;<br \/>\n<code><br \/>\n function checkonl() {<br \/>\n   var bisi=[-1], iisi=[-1], pisi=[-1], jbisi=0, jiisi=0, jpisi=0, iourps;<br \/>\n   var ourps=document.getElementsByTagName(\"b\");<br \/>\n   for (iourps=0; iourps&lt;ourps.length; iourps++) {<br \/>\n     if (ourps[iourps].innerHTML.replace(\/\\&lt;p\\&gt;\/g,\"\").replace(\/\\&lt;i\\&gt;\/g,\"\").replace(\/\\&lt;b\\&gt;\/g,\"\").replace(\/\\&lt;\\\/p\\&gt;\/g,\"\").replace(\/\\&lt;\\\/i\\&gt;\/g,\"\").replace(\/\\&lt;\\\/b\\&gt;\/g,\"\")<font color=blue>.replace(\/\\&lt;\\\/strong\\&gt;\/g,\"\").replace(\/\\&lt;strong\\&gt;\/g,\"\")<\/font> == \"Did you know?\") {<br \/>\n       bisi[jbisi]=iourps;<br \/>\n       jbisi++;<br \/>\n       bisi[jbisi]=-1;<br \/>\n     } else if (ourps[iourps].innerHTML.replace(\/\\&lt;p\\&gt;\/g,\"\").replace(\/\\&lt;i\\&gt;\/g,\"\").replace(\/\\&lt;b\\&gt;\/g,\"\").replace(\/\\&lt;\\\/p\\&gt;\/g,\"\").replace(\/\\&lt;\\\/i\\&gt;\/g,\"\").replace(\/\\&lt;\\\/b\\&gt;\/g,\"\")<font color=blue>.replace(\/\\&lt;\\\/strong\\&gt;\/g,\"\").replace(\/\\&lt;strong\\&gt;\/g,\"\")<\/font> == \"Stop Press\") {<br \/>\n       bisi[jbisi]=iourps;<br \/>\n       jbisi++;<br \/>\n       bisi[jbisi]=-1;<br \/>\n     }<br \/>\n   }<br \/>\n   ourps=document.getElementsByTagName(\"i\");<br \/>\n   for (iourps=0; iourps&lt;ourps.length; iourps++) {<br \/>\n     if (ourps[iourps].innerHTML.replace(\/\\&lt;p\\&gt;\/g,\"\").replace(\/\\&lt;i\\&gt;\/g,\"\").replace(\/\\&lt;b\\&gt;\/g,\"\").replace(\/\\&lt;\\\/p\\&gt;\/g,\"\").replace(\/\\&lt;\\\/i\\&gt;\/g,\"\").replace(\/\\&lt;\\\/b\\&gt;\/g,\"\")<font color=blue>.replace(\/\\&lt;\\\/strong\\&gt;\/g,\"\").replace(\/\\&lt;strong\\&gt;\/g,\"\")<\/font> == \"Did you know?\") {<br \/>\n       iisi[jiisi]=iourps;<br \/>\n       jiisi++;<br \/>\n       iisi[jiisi]=-1;<br \/>\n     } else if (ourps[iourps].innerHTML.replace(\/\\&lt;p\\&gt;\/g,\"\").replace(\/\\&lt;i\\&gt;\/g,\"\").replace(\/\\&lt;b\\&gt;\/g,\"\").replace(\/\\&lt;\\\/p\\&gt;\/g,\"\").replace(\/\\&lt;\\\/i\\&gt;\/g,\"\").replace(\/\\&lt;\\\/b\\&gt;\/g,\"\")<font color=blue>.replace(\/\\&lt;\\\/strong\\&gt;\/g,\"\").replace(\/\\&lt;strong\\&gt;\/g,\"\")<\/font> == \"Stop Press\") {<br \/>\n       iisi[jiisi]=iourps;<br \/>\n       jiisi++;<br \/>\n       iisi[jiisi]=-1;<br \/>\n     }<br \/>\n   }<br \/>\n   ourps=document.getElementsByTagName(\"p\");<br \/>\n   for (iourps=0; iourps&lt;ourps.length; iourps++) {<br \/>\n     if (ourps[iourps].innerHTML.replace(\/\\&lt;p\\&gt;\/g,\"\").replace(\/\\&lt;i\\&gt;\/g,\"\").replace(\/\\&lt;b\\&gt;\/g,\"\").replace(\/\\&lt;\\\/p\\&gt;\/g,\"\").replace(\/\\&lt;\\\/i\\&gt;\/g,\"\").replace(\/\\&lt;\\\/b\\&gt;\/g,\"\")<font color=blue>.replace(\/\\&lt;\\\/strong\\&gt;\/g,\"\").replace(\/\\&lt;strong\\&gt;\/g,\"\")<\/font> == \"Did you know?\") {<br \/>\n       pisi[jpisi]=iourps;<br \/>\n       jpisi++;<br \/>\n       pisi[jpisi]=-1;<br \/>\n     } else if (ourps[iourps].innerHTML.replace(\/\\&lt;p\\&gt;\/g,\"\").replace(\/\\&lt;i\\&gt;\/g,\"\").replace(\/\\&lt;b\\&gt;\/g,\"\").replace(\/\\&lt;\\\/p\\&gt;\/g,\"\").replace(\/\\&lt;\\\/i\\&gt;\/g,\"\").replace(\/\\&lt;\\\/b\\&gt;\/g,\"\")<font color=blue>.replace(\/\\&lt;\\\/strong\\&gt;\/g,\"\").replace(\/\\&lt;strong\\&gt;\/g,\"\")<\/font> == \"Stop Press\") {<br \/>\n       pisi[jpisi]=iourps;<br \/>\n       pisi[jpisi]=iourps;<br \/>\n       jpisi++;<br \/>\n       pisi[jpisi]=-1;<br \/>\n     } else if (ourps[iourps].innerHTML.toUpperCase().indexOf(\"ISBN:\") != -1) {<br \/>\n       var isbnis='', jisbn=0, okays=\"-0123456789\", preis=[];<br \/>\n       if (ourps[iourps].innerHTML.toUpperCase().indexOf(\"ISBN: \") != -1) {<br \/>\n         \/\/document.title+=' !';<br \/>\n<br \/>         preis=ourps[iourps].textContent.replace(\/\\\"\/g,'').replace(\/\\'\/g,\"\").replace(\/\\&lt;b\\&gt;\/g,'').replace(\/\\&lt;\\\/b\\&gt;\/g,'').replace(\/\\&lt;i\\&gt;\/g,'').replace(\/\\&lt;\\\/i\\&gt;\/g,'').split(\"ISBN: \");<br \/>\n         if (preis.length &gt; 1 && preis[0].indexOf(\"(\") != -1) preis=preis[0].split(\"(\");<br \/>\n         while (okays.indexOf(ourps[iourps].innerHTML.toUpperCase().split(\"ISBN: \")[1].substring(jisbn, eval(jisbn + 1))) != -1) {<br \/>\n           isbnis+=ourps[iourps].innerHTML.toUpperCase().split(\"ISBN: \")[1].substring(jisbn, eval(jisbn + 1));<br \/>\n           jisbn++;<br \/>\n         }<br \/>\n       } else if (ourps[iourps].innerHTML.toUpperCase().indexOf(\"ISBN:&NBSP;\") != -1) {<br \/>\n         \/\/document.title+=' !!';<br \/>\n<br \/>         preis=ourps[iourps].textContent.replace(\/\\\"\/g,'').replace(\/\\'\/g,\"\").replace(\/\\&lt;b\\&gt;\/g,'').replace(\/\\&lt;\\\/b\\&gt;\/g,'').replace(\/\\&lt;i\\&gt;\/g,'').replace(\/\\&lt;\\\/i\\&gt;\/g,'').split(\"ISBN:&nbsp;\");<br \/>\n         if (preis.length &gt; 1 && preis[0].indexOf(\"(\") != -1) preis=preis[0].split(\"(\");<br \/>\n         while (okays.indexOf(ourps[iourps].innerHTML.toUpperCase().split(\"ISBN:&NBSP;\")[1].substring(jisbn, eval(jisbn + 1))) != -1) {<br \/>\n           isbnis+=ourps[iourps].innerHTML.toUpperCase().split(\"ISBN:&NBSP;\")[1].substring(jisbn, eval(jisbn + 1));<br \/>\n           jisbn++;<br \/>\n         }<br \/>\n       } else {<br \/>\n         \/\/document.title+=' !!!';<br \/>\n<br \/>         preis=ourps[iourps].textContent.replace(\/\\\"\/g,'').replace(\/\\'\/g,\"\").replace(\/\\&lt;b\\&gt;\/g,'').replace(\/\\&lt;\\\/b\\&gt;\/g,'').replace(\/\\&lt;i\\&gt;\/g,'').replace(\/\\&lt;\\\/i\\&gt;\/g,'').split(\"ISBN:\");<br \/>\n         if (preis.length &gt; 1 && preis[0].indexOf(\"(\") != -1) preis=preis[0].split(\"(\");<br \/>\n         while (okays.indexOf(ourps[iourps].innerHTML.toUpperCase().split(\"ISBN:\")[1].substring(jisbn, eval(jisbn + 1))) != -1) {<br \/>\n           isbnis+=ourps[iourps].innerHTML.toUpperCase().split(\"ISBN:\")[1].substring(jisbn, eval(jisbn + 1));<br \/>\n           jisbn++;<br \/>\n         }<br \/>\n       }<br \/>\n       if (isbnis != '') {<br \/>\n         \/\/ourps[iourps].innerHTML=ourps[iourps].innerHTML.replace(isbnis, \"&lt;a target=_blank title='ISBN lookup' href='https:\/\/isbnsearch.org\/isbn\/\" + isbnis.replace(\/\\-\/g,'') + \"'&gt;\" + isbnis + \"&lt;\/a&gt;\");<br \/>\n         \/\/if (ourps[iourps].innerHTML.indexOf(\": \" + isbnis) != -1) {<br \/>\n         \/\/ourps[iourps].innerHTML=ourps[iourps].innerHTML.replace(\": \" + isbnis, \"&lt;a target=_blank title='ISBN lookup' href='HTTP:\/\/www.lookupbyisbn.com\/Search\/Book\/\" + isbnis.replace(\/\\-\/g,'') + \"\/1'&gt;: \" + isbnis.replace(\/\\-\/g,'').substring(0,1) + '-' + isbnis.replace(\/\\-\/g,'').substring(1,8) + '-' + isbnis.replace(\/\\-\/g,'').substring(8,9) + '-' + isbnis.replace(\/\\-\/g,'').substring(9) + \"&lt;\/a&gt;\");<br \/>\n         \/\/} else {<br \/>\n         ourps[iourps].innerHTML=ourps[iourps].innerHTML.replace(isbnis, \" &lt;a target=_blank title='ISBN lookup' href='HTTP:\/\/www.lookupbyisbn.com\/Search\/Book\/\" + isbnis.replace(\/\\-\/g,'') + \"\/1'&gt;\" + isbnis + \"&lt;\/a&gt;\");<br \/>\n         \/\/}<br \/>\n         if (document.URL.indexOf('?why=') != -1) alert(' -');<br \/>\n         \/\/document.title+=' -';<br \/>\n         if (preis.length &gt; 1) {<br \/>\n          document.title+=' =';<br \/>\n          isbnis='';<br \/>\n          jisbn=0;<br \/>\n          okays=\"\";<br \/>\n          var authoris='', authord='';<br \/>\n          \/\/ \/search?s=How+English+Works<br \/>\n          if (preis[0].indexOf(' by ') != -1 && preis[0].indexOf('hanks to ') != -1) {<br \/>\n            isbnis=preis[0].split('hanks to ')[eval(-1 + preis[0].split('hanks to ').length)].split(' by ')[0]; \/\/.split(' ');<br \/>\n            preis=preis[0].split('hanks to ')[eval(-1 + preis[0].split('hanks to ').length)].split(' by ')[1].trim().split(' ');<br \/>\n            if (preis.length &gt; 1) {<br \/>\n              for (jisbn=0; jisbn&lt;preis.length; jisbn++) {<br \/>\n                if (preis[jisbn].substring(0,1) == preis[jisbn].substring(0,1).toUpperCase() || preis[jisbn].length &lt;= 2) {<br \/>\n                  authoris+=(authord + preis[jisbn]);<br \/>\n                  authord=' ';<br \/>\n                } else if (authoris != '') {<br \/>\n                  ourps[iourps].innerHTML=ourps[iourps].innerHTML.replace(authoris, \"&lt;a target=_blank title='ISBN lookup' href='https:\/\/isbnsearch.org\/search?s=\" + authoris.replace(\/\\&amp\\;\/g,'and').replace(\/\\&\/g,'and').replace(\/\\ \/g,'+') + \"'&gt;\" + authoris + \"&lt;\/a&gt;\");<br \/>\n                  authoris='';<br \/>\n                  authord='';<br \/>\n                }<br \/>\n              }<br \/>\n              if (authoris != '') {<br \/>\n               \/\/document.title+=' ' + authoris;<br \/>\n               ourps[iourps].innerHTML=ourps[iourps].innerHTML.replace(authoris, \"&lt;a target=_blank title='ISBN lookup' href='https:\/\/isbnsearch.org\/search?s=\" + authoris.replace(\/\\&amp\\;\/g,'and').replace(\/\\&\/g,'and').replace(\/\\ \/g,'+') + \"'&gt;\" + authoris + \"&lt;\/a&gt;\");<br \/>\n               \/\/document.title+=' ' + authoris;<br \/>\n              }<br \/>\n            }<br \/>\n          } else if (preis[0].indexOf(' by ') != -1 && preis[0].indexOf('hank ') != -1) {<br \/>\n            isbnis=preis[0].split('hank ')[eval(-1 + preis[0].split('hank ').length)].split(' by ')[0]; \/\/.split(' ');<br \/>\n            preis=preis[0].split('hank ')[eval(-1 + preis[0].split('hank ').length)].split(' by ')[1].trim().split(' ');<br \/>\n            if (preis.length &gt; 1) {<br \/>\n              for (jisbn=0; jisbn&lt;preis.length; jisbn++) {<br \/>\n                if (preis[jisbn].substring(0,1) == preis[jisbn].substring(0,1).toUpperCase() || preis[jisbn].length &lt;= 2) {<br \/>\n                  authoris+=(authord + preis[jisbn]);<br \/>\n                  authord=' ';<br \/>\n                } else if (authoris != '') {<br \/>\n                  ourps[iourps].innerHTML=ourps[iourps].innerHTML.replace(authoris, \"&lt;a target=_blank title='ISBN lookup' href='https:\/\/isbnsearch.org\/search?s=\" + authoris.replace(\/\\&amp\\;\/g,'and').replace(\/\\&\/g,'and').replace(\/\\ \/g,'+') + \"'&gt;\" + authoris + \"&lt;\/a&gt;\");<br \/>\n                  authoris='';<br \/>\n                  authord='';<br \/>\n                }<br \/>\n              }<br \/>\n              if (authoris != '') {<br \/>\n               \/\/document.title+=' ...' + authoris;<br \/>\n               ourps[iourps].innerHTML=ourps[iourps].innerHTML.replace(authoris, \"&lt;a target=_blank title='ISBN lookup' href='https:\/\/isbnsearch.org\/search?s=\" + authoris.replace(\/\\&amp\\;\/g,'and').replace(\/\\&\/g,'and').replace(\/\\ \/g,'+') + \"'&gt;\" + authoris + \"&lt;\/a&gt;\");<br \/>\n               \/\/document.title+=' ...' + authoris;<br \/>\n              }<br \/>\n            }<br \/>\n          } else if (preis[0].indexOf('hanks to ') != -1) {<br \/>\n            isbnis=preis[0].trim().split('hanks to ')[eval(-1 + preis[0].split('hanks to ').length)]; \/\/.split(' ');<br \/>\n          } else if (preis[0].indexOf('hank ') != -1) {<br \/>\n            isbnis=preis[0].trim().split('hank ')[eval(-1 + preis[0].split('hank ').length)]; \/\/.split(' ');<br \/>\n          }<br \/>\n          if (isbnis != '') {<br \/>\n            okays=\"\";<br \/>\n            jisbn=0;<br \/>\n            preis=isbnis.split(' ');<br \/>\n            while (okays == \"\" && jisbn &lt; preis.length && preis[jisbn].substring(0,1) == preis[jisbn].substring(0,1).toLowerCase()) {<br \/>\n             if (okays == \"\" && isbnis.indexOf(preis[jisbn] + \" \") != -1) {<br \/>\n              isbnis=isbnis.replace(preis[jisbn] + \" \",\"\");<br \/>\n              jisbn++;<br \/>\n             } else {<br \/>\n              okays=\"n\";<br \/>\n              jisbn++;<br \/>\n             }<br \/>\n            }<br \/>\n            if (isbnis != '') {<br \/>\n               \/\/document.title+=' +++' + isbnis;<br \/>\n             if (ourps[iourps].innerHTML.indexOf(isbnis) != -1) {<br \/>\n               \/\/document.title+=' +++' + isbnis;<br \/>\n               \/\/ourps[iourps].innerHTML=ourps[iourps].innerHTML.replace(isbnis, \"&lt;a target=_blank title='ISBN lookup' href='https:\/\/isbnsearch.org\/search?s=\" + isbnis.replace(\/\\&amp\\;\/g,'and').replace(\/\\&\/g,'and').replace(\/\\ \/g,'+') + \"'&gt;\" + isbnis + \"&lt;\/a&gt;\");<br \/>\n               ourps[iourps].innerHTML=ourps[iourps].innerHTML.replace(isbnis, \" .. &lt;a target=_blank title='ISBN lookup' href='HTTP:\/\/www.lookupbyisbn.com\/Search\/Book\/\" + isbnis.replace(\/\\&amp\\;\/g,'and').replace(\/\\&\/g,'and').replace(\/\\ \/g,'+') + \"\/1'&gt;&lt;label&gt;\" + isbnis + \"&lt;\/label&gt;&lt;\/a&gt;\");<br \/>\n               \/\/document.title+=' +++' + isbnis;<br \/>\n             }<br \/>\n            }<br \/>\n          }<br \/>\n         }<br \/>\n<br \/> <br \/>\n       }<br \/>\n<br \/> <br \/>\n     }<br \/>\n   }<br \/>\n   jbisi=0;<br \/>\n   jiisi=0;<br \/>\n   jpisi=0;<br \/>\n<br \/>\n   if (bisi[jbisi] != -1) {<br \/>\n   <font color=blue>ourps=document.getElementsByTagName(\"strong\"); \/\/ <\/font>ourps=document.getElementsByTagName(\"b\");<br \/>\n   for (iourps=0; iourps&lt;ourps.length; iourps++) {<br \/>\n     if (iourps == bisi[jbisi]) {<br \/>\n       ourps[iourps].className = <font color=blue>\"dyk dykstrong\"; \/\/ <\/font>\"dyk dykb\";<br \/>\n       jbisi++;<br \/>\n     }<br \/>\n   }<br \/>\n   }<br \/>\n   if (iisi[jiisi] != -1) {<br \/>\n   ourps=document.getElementsByTagName(\"i\");<br \/>\n   for (iourps=0; iourps&lt;ourps.length; iourps++) {<br \/>\n     if (iourps == iisi[jiisi]) {<br \/>\n       ourps[iourps].className = \"dyk dyki\";<br \/>\n       jiisi++;<br \/>\n     }<br \/>\n   }<br \/>\n   }<br \/>\n   if (pisi[jpisi] != -1) {<br \/>\n   ourps=document.getElementsByTagName(\"p\");<br \/>\n   for (iourps=0; iourps&lt;ourps.length; iourps++) {<br \/>\n     if (iourps == pisi[jpisi]) {<br \/>\n       ourps[iourps].className = \"dyk dykp\";<br \/>\n       jpisi++;<br \/>\n     }<br \/>\n   }<br \/>\n   }<br \/>\n}<br \/>\n<br \/>\nfunction lookforbincode() {<br \/>\n  var cdsis, bsis, icdsa, jcdsa, xbsis, repwith='', kdsis, vparts;<br \/>\nif (navigator.userAgent.match(\/Android|BlackBerry|iPad|iPhone|iPod|Opera Mini|IEMobile\/i)) { \/\/ it is a mobile device<br \/>\n  cdsis=document.getElementsByTagName('code');<br \/>\n  \/\/alert(cdsis.length);<br \/>\n  for (icdsa=0; icdsa&lt;cdsis.length; icdsa++) {<br \/>\n    bsis=cdsis[icdsa].innerHTML.split('&lt;\/' + 'b&gt;');<br \/>\n    for (jcdsa=0; jcdsa&lt;eval(-1 + bsis.length); jcdsa++) {<br \/>\n       \/\/alert(bsis[jcdsa]);<br \/>\n       vparts=bsis[jcdsa].split('&lt;b'+ '&gt;');<br \/>\n       if (vparts[eval(-1 + vparts.length)].indexOf(String.fromCharCode(10)) != -1) {<br \/>\n         xbsis=vparts[eval(-1 + vparts.length)].split(String.fromCharCode(10));<br \/>\n         repwith=\"\";<br \/>\n         if (xbsis.length &gt; 2) {<br \/>\n           for (kdsis=0; kdsis&lt;xbsis.length; kdsis++) {<br \/>\n             repwith+=xbsis[kdsis] + '&lt;\/' + 'b&gt;' + String.fromCharCode(10) + '&lt;' + 'b&gt;';<br \/>\n           }<br \/>\n           if (repwith != '') {<br \/>\n             \/\/cdsis[icdsa].innerHTML=cdsis[icdsa].innerHTML.replace('&lt;b&gt;' + vparts[eval(-1 + vparts.length)] + '&lt;\/b&gt;', '&lt;b&gt;' + repwith + '&lt;\/b&gt;');<br \/>\n             \/\/if (cdsis[icdsa].innerHTML.indexOf('&lt;b&gt;' + vparts[eval(-1 + vparts.length)] + '&lt;\/b&gt;') != -1) { alert(repwith); } else {   alert('0:' + repwith);   }<br \/>\n             cdsis[icdsa].innerHTML=cdsis[icdsa].innerHTML.replace('&lt;' + 'b&gt;' + vparts[eval(-1 + vparts.length)] + '&lt;\/' + 'b&gt;', '&lt;st' + 'rong&gt;' + vparts[eval(-1 + vparts.length)] + '&lt;\/str' + 'ong&gt;');<br \/>\n           }<br \/>\n         }<br \/>\n       \/\/} else {<br \/>\n       \/\/  alert('why');<br \/>\n       }<br \/>\n    }<br \/>\n  }<br \/>\n}<br \/>\n}<br \/>\n<\/code><br \/>\n&#8220;; ?&gt;<\/p>\n<p> &#8230; needed consideration too.<\/p>\n<\/li>\n<\/ol>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=\"_blank\" href='\/\/www.rjmprogramming.com.au\/ITblog\/wordpress-bold-for-strong-deprecated-tutorial\/' rel=\"noopener\">WordPress Bold for Strong Deprecated Tutorial<\/a>.<\/p-->\n<hr>\n<p id='wpbst'>Previous relevant <a target=\"_blank\" title='WordPress Bold for Strong Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/wordpress-bold-for-strong-tutorial\/' rel=\"noopener\">WordPress Bold for Strong Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=\"_blank\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/b_to_strong.gif\" rel=\"noopener\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"WordPress Bold for Strong Tutorial\" src=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/b_to_strong.gif\" title=\"WordPress Bold for Strong Tutorial\"  style=\"float:left;\"   \/><\/a><p class=\"wp-caption-text\">WordPress Bold for Strong Tutorial<\/p><\/div>\n<p>It pans out the CSS styling changes introduced for this WordPress Blog outlined in <a title='WordPress Bold Within Code Styling Primer Tutorial' href='#wpbwcspt'>WordPress Bold Within Code Styling Primer Tutorial<\/a> work a lot of the time but not always.   It is when the &lt;b&gt; &#8230; &lt;\/b&gt; &#8220;&#8230;&#8221; bits have more than about four lines worth of data.  So, rather than ditch that CSS &#8230;<\/p>\n<blockquote cite='\/\/www.rjmprogramming.com.au\/ITblog\/wordpress-bold-within-code-styling-primer-tutorial\/'><p>\n&lt;style&gt;<br \/>\n\/* Thanks to https:\/\/cssgradient.io\/blog\/css-gradient-text\/ below *\/<br \/>\n<br \/>\n<b>b:not(.dyk) { <\/b><br \/>\n<b>  background: -webkit-linear-gradient(#eee, #333);<\/b><br \/>\n<b>  -webkit-background-clip: text;<\/b><br \/>\n<b>  -webkit-text-fill-color: transparent;<\/b><br \/>\n<b>}<\/b><br \/>\n<b>code b { <\/b><br \/>\n<b>  background: -webkit-linear-gradient(#eee, #333);<\/b><br \/>\n<b>  -webkit-background-clip: text;<\/b><br \/>\n<b>  -webkit-text-fill-color: transparent;<\/b><br \/>\n<b>}<\/b><br \/>\n&lt;\/style&gt;\n<\/p><\/blockquote>\n<p> &#8230; we settled on an alternative idea.  Being as the &#8220;b&#8221; tag faces <a target=\"_blank\" title='Deprecation' href='https:\/\/softwareengineering.stackexchange.com\/questions\/255366\/why-are-the-b-and-i-tags-deprecated' rel=\"noopener\">threats of deprecation<\/a> from the web browser renderers (who&#8217;d rather see you use CSS &#8220;font-weight&#8221; instead), why not &#8230;<\/p>\n<ul>\n<li>detect the scenario of what causes the problem &#8230;\n<ol>\n<li>in good ol&#8217; WordPress Blog TwentyTen theme&#8217;s header.php PHP identify all &lt;b&gt; &#8230; &lt;\/b&gt; &#8220;&#8230;&#8221; bits<\/li>\n<li>count the number of lines in said &lt;b&gt; &#8230; &lt;\/b&gt; &#8220;&#8230;&#8221; bits<\/li>\n<li>if the number of lines if greater than four in any such piece of HTML &#8220;b&#8221; content &#8230;<\/li>\n<li>change all &lt;b&gt; &#8230; &lt;\/b&gt; &#8220;&#8230;&#8221; bits to &lt;strong&gt; &#8230; &lt;\/strong&gt; &#8220;&#8230;&#8221; throughout the content &#8230;<\/li>\n<\/ol>\n<\/li>\n<li>as per &#8230;<br \/>\n&lt;?php<br \/>\n<code><br \/>\n  if (isset($post-&gt;post_content)) {  \/\/ Bold to STRONG perhaps<br \/>\n    $bolds=explode('&lt;\/' . 'b' . '&gt;', $post-&gt;post_content);<br \/>\n    $worryb=false;<br \/>\n    for ($ichb=0; $ichb&lt;(-1 + sizeof($bolds)); $ichb++) {<br \/>\n      if (strpos($bolds[$ichb], '&lt;' . 'b' . '&gt;') !== false) {<br \/>\n        $bcontent=explode('&lt;' . 'b' . '&gt;', $bolds[$ichb])[-1 + sizeof(explode('&lt;' . 'b' . '&gt;', $bolds[$ichb]))];<br \/>\n        $crlflines=explode(\"\\n\", $bcontent);<br \/>\n        if (sizeof($crlflines) &gt; 4) { $worryb=true; }<br \/>\n      }<br \/>\n    }<br \/>\n    if ($worryb) {<br \/>\n      $post-&gt;post_content=str_replace('&lt;' . 'b' . '&gt;', '&lt;' . 'str' . 'ong' . '&gt;', str_replace('&lt;\/' . 'b' . '&gt;', '&lt;\/' . 'str' . 'ong' . '&gt;', $post-&gt;post_content));<br \/>\n    }<br \/>\n  }<br \/>\n<\/code><br \/>\n?&gt;\n<\/li>\n<\/ul>\n<p>The colour coding we have been preferring these days such as <font color=blue>&lt;font color=blue&gt; &#8230; &lt;\/font&gt;<\/font> &#8220;<font color=blue>&#8230;<\/font>&#8221; or <font color=red>&lt;font color=red&gt; &#8230; &lt;\/font&gt;<\/font> &#8220;<font color=red>&#8230;<\/font>&#8221; is unaffected by this new logic, and remains an alternative alternative.<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=\"_blank\" href='\/\/www.rjmprogramming.com.au\/ITblog\/wordpress-bold-for-strong-tutorial\/' rel=\"noopener\">WordPress Bold for Strong Tutorial<\/a>.<\/p-->\n<hr>\n<p id='wpbwcspt'>Previous relevant <a target=\"_blank\" title='WordPress Bold Within Code Styling Primer Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/wordpress-bold-within-code-styling-primer-tutorial\/' rel=\"noopener\">WordPress Bold Within Code Styling Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=\"_blank\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/bold_code_wp.jpg\" rel=\"noopener\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"WordPress Bold Within Code Styling Primer Tutorial\" src=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/bold_code_wp.jpg\" title=\"WordPress Bold Within Code Styling Primer Tutorial\"  style=\"float:left;\"   \/><\/a><p class=\"wp-caption-text\">WordPress Bold Within Code Styling Primer Tutorial<\/p><\/div>\n<p>Can&#8217;t remember when it happened, but the HTML &lt;b&gt; <b>bold text<\/b> &lt;\/b&gt; is under threat of deprecation, and this has affected how it no longer &#8220;packs a punch&#8221;, in WordPress blog styling, within a &lt;code&gt; <code>code tag text<\/code> &lt;\/code&gt; as it used to.<\/p>\n<p>This has been annoying news for us trying to link a concept with a code snippet.  But all is not lost, as we can try flagging the link in another way, independent of text line thickness (by the way, the &lt;strong&gt; &lt;\/strong&gt; HTML is an alternative to &lt;b&gt; &lt;\/b&gt;, here).  We read about the concept of Text Gradient at <a target=\"_blank\" title='Useful link regarding Text Gradient, thanks' href='https:\/\/cssgradient.io\/blog\/css-gradient-text\/' rel=\"noopener\">this useful link<\/a>, thanks, and applied it to our WordPress TwentyTen themed header.php file <b>as per<\/b> the CSS (code) snippet (within the PHP) &#8230;<\/p>\n<p><code><br \/>\n&lt;style&gt;<br \/>\n\/* Thanks to https:\/\/cssgradient.io\/blog\/css-gradient-text\/ below *\/<br \/>\n<br \/>\n<b>b:not(.dyk) { <\/b><br \/>\n<b>  background: -webkit-linear-gradient(#eee, #333);<\/b><br \/>\n<b>  -webkit-background-clip: text;<\/b><br \/>\n<b>  -webkit-text-fill-color: transparent;<\/b><br \/>\n<b>}<\/b><br \/>\n<b>code b { <\/b><br \/>\n<b>  background: -webkit-linear-gradient(#eee, #333);<\/b><br \/>\n<b>  -webkit-background-clip: text;<\/b><br \/>\n<b>  -webkit-text-fill-color: transparent;<\/b><br \/>\n<b>}<\/b><br \/>\n&lt;\/style&gt;<br \/>\n<\/code><\/p>\n<p> &#8230; the result of the deployment of which shows you this very affect, to look above <font size=1>(as our golden retriever, Nala, is apt to do &#8230;<br \/>\n<img src='\/\/farm8.staticflickr.com\/7328\/11972198873_0cde4c496f.jpg' title='Nala'><\/img><br \/>\n)<\/font>.<\/p>\n<p>Notice the use of a <a target=\"_blank\" title='CSS Combinator' href='https:\/\/www.w3schools.com\/css\/css_combinators.asp' rel=\"noopener\">CSS Combinator<\/a> &#8220;code b&#8221; (ie. the &#8220;descendant selector&#8221;, specifically &#8220;Selects all &lt;b&gt; elements inside &lt;code&gt; elements&#8221;)<br \/>\n &#8230;<\/p>\n<blockquote cite='https:\/\/www.w3schools.com\/css\/css_combinators.asp'><p>\nA CSS selector can contain more than one simple selector. Between the simple selectors, we can include a combinator.<br \/>\n<br \/>\nThere are four different combinators in CSS:<br \/>\n<br \/>\ndescendant selector (space)<br \/>\nchild selector (&gt;)<br \/>\nadjacent sibling selector (+)<br \/>\ngeneral sibling selector (~)\n<\/p><\/blockquote>\n<p> &#8230; CSS Selector above, as a tool for that more forensic CSS styling on your webpages!<\/p>\n<p><b><i>Stop Press<\/i><\/b><\/p>\n<p>We found with mobile platforms, that within code elements, when a bold (ie. b element tag) had multiple lines to it, the CSS above caused it to only show the first line, so in TwentyTen theme&#8217;s header.php we had to add onload=&#8221; lookforbincode(); &#8221; code as per &#8230;<\/p>\n<p><code><br \/>\nfunction lookforbincode() {<br \/>\n  var cdsis, bsis, icdsa, jcdsa, xbsis, repwith='', kdsis, vparts;<br \/>\nif (navigator.userAgent.match(\/Android|BlackBerry|iPad|iPhone|iPod|Opera Mini|IEMobile\/i)) { \/\/ it is a mobile device<br \/>\n  cdsis=document.getElementsByTagName('code');<br \/>\n  for (icdsa=0; icdsa&lt;cdsis.length; icdsa++) {<br \/>\n    bsis=cdsis[icdsa].innerHTML.split('&lt;\/b&gt;');<br \/>\n    for (jcdsa=0; jcdsa&lt;eval(-1 + bsis.length); jcdsa++) {<br \/>\n       vparts=bsis[jcdsa].split('&lt;b&gt;');<br \/>\n       if (vparts[eval(-1 + vparts.length)].indexOf(String.fromCharCode(10)) != -1) {<br \/>\n         xbsis=vparts[eval(-1 + vparts.length)].split(String.fromCharCode(10));<br \/>\n         repwith=\"\";<br \/>\n         if (xbsis.length &gt; 2) {<br \/>\n           for (kdsis=0; kdsis&lt;xbsis.length; kdsis++) {<br \/>\n             repwith+=xbsis[kdsis] + '&lt;\/b&gt;' + String.fromCharCode(10) + '&lt;b&gt;';<br \/>\n           }<br \/>\n           if (repwith != '') {<br \/>\n             \/\/cdsis[icdsa].innerHTML=cdsis[icdsa].innerHTML.replace('&lt;b&gt;' + vparts[eval(-1 + vparts.length)] + '&lt;\/b&gt;', '&lt;b&gt;' + repwith + '&lt;\/b&gt;');<br \/>\n             \/\/if (cdsis[icdsa].innerHTML.indexOf('&lt;b&gt;' + vparts[eval(-1 + vparts.length)] + '&lt;\/b&gt;') != -1) { alert(repwith); } else {   alert('0:' + repwith);   }<br \/>\n             cdsis[icdsa].innerHTML=cdsis[icdsa].innerHTML.replace('&lt;b&gt;' + vparts[eval(-1 + vparts.length)] + '&lt;\/b&gt;', '&lt;strong&gt;' + vparts[eval(-1 + vparts.length)] + '&lt;\/strong&gt;');<br \/>\n           }<br \/>\n         }<br \/>\n       }<br \/>\n    }<br \/>\n  }<br \/>\n}<br \/>\n}<br \/>\n<\/code><\/p>\n<p> &#8230; changing b tags into strong tags in this mobile platform &#8220;b within code&#8221; scenario.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d47147' onclick='var dv=document.getElementById(\"d47174\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/css\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d47147' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d49089' onclick='var dv=document.getElementById(\"d49089\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/php\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d49089' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d57347' onclick='var dv=document.getElementById(\"d57347\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/deprecated\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d57347' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s face it, this blog posting&#8216;s original premise has been waiting in the wings, for publication. Things move on, and it is published now, pushed up the priority list as we discovered &#8230; issues, resulting in transparent text, regarding code &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/wordpress-bold-for-strong-deprecation-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,14,37],"tags":[151,1887,1852,327,1549,2761,576,932,997,3716,3307,1319,1324,1325,1456,3276],"class_list":["post-57347","post","type-post","status-publish","format-standard","hentry","category-elearning","category-event-driven-programming","category-tutorials","tag-blog","tag-codex","tag-deprecated","tag-did-you-know","tag-element","tag-header-php","tag-html","tag-php","tag-programming","tag-serverside","tag-strong","tag-tutorial","tag-twentyten","tag-twentyten-theme","tag-wordpress","tag-wordpress-blog"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/57347"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=57347"}],"version-history":[{"count":18,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/57347\/revisions"}],"predecessor-version":[{"id":66459,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/57347\/revisions\/66459"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=57347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=57347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=57347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}