Emily Strickland 96f51e593f
Guard against error extracting body from URL (#20428)
If `Nokogiri::HTML(value).at_xpath('//body')` fails to find the `body` element, it will return `nil`. We can guard against that with an early return. Avoids calling `children` on `Nilclass` in those cases.
2022-11-11 21:22:28 +01:00
..
2017-11-24 02:05:53 +01:00
2020-01-23 22:00:13 +01:00
2020-06-02 19:24:53 +02:00
2020-06-02 19:24:53 +02:00
2020-06-02 19:24:53 +02:00
2021-02-21 19:50:12 +01:00
2020-06-02 19:24:53 +02:00
2022-10-10 08:03:19 +02:00
2017-01-13 03:24:41 +01:00