how to override a css inline without affecting the main element [duplicate]

Solution 1:

You can use the style attribute in css as you would with any other attribute.

p[style*="font-weight:bold"] {
    font-weight: bolder;
}