@php $wh = str_replace('\\','', str_replace('/words/','/', (string)($item['words_html'] ?? ''))); $parts = explode('href="/word/', $wh); $wh2 = $parts[0]; $np = count($parts); for($i=1;$i<$np;$i++){ $seg = $parts[$i]; $qp = strpos($seg,'"'); if($qp===false){ $wh2 .= 'href="/word/'.$seg; continue; } $t = substr($seg,0,$qp); $rest = substr($seg,$qp); $t = html_entity_decode($t, ENT_QUOTES, 'UTF-8'); $t = str_replace(array(chr(39),'.'), '', mb_strtolower($t,'UTF-8')); $t = trim(preg_replace('/[^a-z0-9]+/','-',$t),'-'); $wh2 .= 'href="/word/'.$t.$rest; } $rh = str_replace('\\','', str_replace('/words/','/', (string)($item['related_html'] ?? ''))); @endphp
WORD LIST

{!! preg_replace('/\\s*Showing.*/s','',$intro) !!} Every entry is a valid play in Scrabble and Words With Friends. Tap any word to open its definition, see its score on each board, and find the anagrams hiding inside it.

WORDS
{!! $wh2 !!}
@if(($template ?? '')==='len_hub' && !empty($hub_len))
POPULAR WORDS
@foreach($hub_len as $it){{ $it['word'] }}{{ $it['score'] }}@endforeach
@endif @if(($template ?? '')==='letter_hub' && empty($ending) && !empty($hub_start))
POPULAR WORDS
@foreach($hub_start as $it){{ $it['word'] }}{{ $it['score'] }}@endforeach
@endif @if(($template ?? '')==='letter_hub' && !empty($ending) && !empty($hub_end))
POPULAR WORDS
@foreach($hub_end as $it){{ $it['word'] }}{{ $it['score'] }}@endforeach
@endif
{!! $rh !!}