Thanks. I couldn't get that second text out. You can use the simpler css class selector I used before in bs4 after 4.1 . The longer version was used to overcome class clashing with the reserved keyword in previous versions.