some progress
This commit is contained in:
@@ -47,10 +47,10 @@ class RemotiveTransformer implements JobTransformer
|
||||
private function sanitizeDescription(string $description): string
|
||||
{
|
||||
// Remove HTML tags and clean up whitespace
|
||||
$clean = strip_tags($description);
|
||||
$clean = html_entity_decode($clean, ENT_QUOTES | ENT_HTML5, 'UTF-8');
|
||||
$clean = preg_replace('/\s+/', ' ', $clean);
|
||||
return trim($clean);
|
||||
// $clean = strip_tags($description);
|
||||
// $clean = html_entity_decode($clean, ENT_QUOTES | ENT_HTML5, 'UTF-8');
|
||||
// $clean = preg_replace('/\s+/', ' ', $clean);
|
||||
return trim($description);
|
||||
}
|
||||
|
||||
private function parseLocation(array $data): ?string
|
||||
|
||||
@@ -46,10 +46,10 @@ class TheMuseTransformer implements JobTransformer
|
||||
|
||||
private function sanitizeDescription(string $description): string
|
||||
{
|
||||
$clean = strip_tags($description);
|
||||
$clean = html_entity_decode($clean, ENT_QUOTES | ENT_HTML5, 'UTF-8');
|
||||
$clean = preg_replace('/\s+/', ' ', $clean);
|
||||
return trim($clean);
|
||||
// $clean = strip_tags($description);
|
||||
// $clean = html_entity_decode($clean, ENT_QUOTES | ENT_HTML5, 'UTF-8');
|
||||
// $clean = preg_replace('/\s+/', ' ', $clean);
|
||||
return trim($description);
|
||||
}
|
||||
|
||||
private function parseLocation(array $data): ?string
|
||||
|
||||
Reference in New Issue
Block a user