Code |
Context function parse_description($content='') {
Configure::write('debug',2);
require_once('libs/simple_html_dom.php');
$content = "<p>Anyone looking to travel to or from Alberta along Highway 3 should prepare for heavy snowfall on Thursday.</p>
<p><meta charset="utf-8" /></p>
<p dir="ltr">Environment Canada issued a special weather statement for the Elk Valley, including Highway 3 and Fernie, early Wednesday morning.</p>
<blockquote class="twitter-tweet">
<p dir="ltr" lang="en">⚠️❄️CAUTION <a href="https://twitter.com/hashtag/ElkValley?src=hash&ref_src=twsrc%5Etfw">#ElkValley</a> <a href="https://twitter.com/hashtag/BCHwy3?src=hash&ref_src=twsrc%5Etfw">#BCHwy3</a> - Environment Canada has issued a special weather statement. 10-15 cm of snow are forecast for Thursday. Watch for changing conditions and heavier snowfall around the <a href="https://twitter.com/hashtag/FernieBC?src=hash&ref_src=twsrc%5Etfw">#FernieBC</a> area. Things should taper off Thursday night.<br />
ℹ️<a href="https://t.co/WmanZpGZEd">https://t.co/WmanZpGZEd</a></p>
— DriveBC (@DriveBC) <a href="https://twitter.com/DriveBC/status/1770544590812250395?ref_src=twsrc%5Etfw">March 20, 2024</a></blockquote>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
<p dir="ltr">The statement says a “significant” amount of snow will arrive on Thursday following the week-long warm spell that spread across the province.</p>
<p dir="ltr">Between 10 and 15 centimetres are possible with localized higher amounts near Fernie.</p>
<p dir="ltr">“A low pressure system, combined with the cold front from the Prairies, will generate a significant amount of snow over the Elk Valley on Thursday,” the statement says.</p>
<p dir="ltr">“The snow is expected to start on Thursday morning, intensifying throughout the day, and then tapering off in the late evening hours.”</p>
<p dir="ltr">Drivers are warned to prepare for changing conditions and urged to monitor forecasts issued by Environment Canada.</p>
<h6 dir="ltr"><em>Thumbnail photo credit: Thompson-Nicola Regional District file picture</em></h6>
"
ApiController::parse_description() - COREpublic_html/app/controllers/api_controller.php, line 1190
ApiController::parse_description() - COREpublic_html/app/controllers/api_controller.php, line 1190
ApiController::rss() - COREpublic_html/app/controllers/api_controller.php, line 1165
Dispatcher::_invoke() - COREcake/dispatcher.php, line 204
Dispatcher::dispatch() - COREcake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 99